Code example for XPathExpression

Methods: evaluate

    protected Object evaluateXPath(Object object) throws XPathExpressionException {
        return xPathExpression.evaluate(object);
    protected Object evaluateXPath(Object object, QName returnType) throws XPathExpressionException {
        return xPathExpression.evaluate(object, returnType);
    protected XPathExpression getXPathExpression() {
        return xPathExpression;
    protected Object getXMLNode(MessageExchange exchange, NormalizedMessage message) throws TransformerException, MessagingException,
                    ParserConfigurationException, IOException, SAXException { 
        // ensure re-readability of the content if the expression also needs to 
        // access the content 
        if (useMessageContent) {
        return transformer.toDOMNode(message);