Package com.consol.citrus.xml.xpath

Examples of com.consol.citrus.xml.xpath.XPathExpressionResult


            }
           
            Document doc = XMLUtils.parseMessagePayload(message.getPayload().toString());
           
            if (XPathUtils.isXPathExpression(pathExpression)) {
                XPathExpressionResult resultType = XPathExpressionResult.fromString(pathExpression, XPathExpressionResult.STRING);
                pathExpression = XPathExpressionResult.cutOffPrefix(pathExpression);
               
                String value = XPathUtils.evaluate(doc, pathExpression, nsContext, resultType);

                if (value == null) {
View Full Code Here


            String actualValue;

            elementPathExpression = context.replaceDynamicContentInString(elementPathExpression);

            if (XPathUtils.isXPathExpression(elementPathExpression)) {
                XPathExpressionResult resultType = XPathExpressionResult.fromString(
                        elementPathExpression, XPathExpressionResult.NODE);
                elementPathExpression = XPathExpressionResult.cutOffPrefix(elementPathExpression);

                //Give ignore elements the chance to prevent the validation in case result type is node
                if (resultType.equals(XPathExpressionResult.NODE) &&
                        isNodeIgnored(XPathUtils.evaluateAsNode(received,
                                elementPathExpression,
                                namespaceContext),
                                validationContext,
                                namespaceContext)) {
View Full Code Here

TOP

Related Classes of com.consol.citrus.xml.xpath.XPathExpressionResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.