public static Node evaluateAsNode ( Node node , String xPathExpression , NamespaceContext nsContext ) { Node result = ( Node ) evaluateExpression ( node , xPathExpression , nsContext , XPathConstants . NODE ) ; if ( result == null ) { throw new CitrusRuntimeException ( "No result for XPath expression: '" + xPathExpression + "'" ) ; } return result ; }
Evaluate XPath expression with result type Node .