Examples of XPathExtractor


Examples of org.mule.module.xml.transformer.XPathExtractor

        final Map<String, String> namespaces = new HashMap<String, String>();
        namespaces.put("g", "http://www.test.com/g");

        final String expression = "//f:width";
        final XPathExtractor extractor = initialiseExtractor(expression, XPathReturnType.STRING);
        extractor.setNamespaces(namespaces);

        assertEquals("http://www.test.com/g", extractor.getNamespaces().get("g"));
    }
View Full Code Here

Examples of org.mule.module.xml.transformer.XPathExtractor

    }

    private XPathExtractor initialiseExtractor(final String expression, XPathReturnType resultType)
        throws RegistrationException
    {
        final XPathExtractor extractor = new XPathExtractor();
        extractor.setExpression(expression);
        extractor.setResultType(resultType);
        initialiseObject(extractor);
        return extractor;
    }
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.