Examples of XPathExpressionResult


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

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

            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
Copyright © 2018 www.massapi.com. 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.