Saturday 25 August 2012

Jaxp13XPathTemplate - utility for extracting data by XPath fom XML

Jaxp13XPathTemplate - it is a java class from Spring Framework for extracting data by XPath from XML.

Example:
String id = xpathTemplate.evaluateAsString("/products/product/id", productRequest);

More here: http://static.springsource.org/spring-ws/site/apidocs/org/springframework/xml/xpath/Jaxp13XPathTemplate.html

No comments: