[ http://issues.apache.org/jira/browse/AXIS2-70?page=comments#action_12315374 ]
Davanum Srinivas commented on AXIS2-70: --------------------------------------- FYI, Got this sample working... ============================================================= import org.apache.axis2.om.xpath.DocumentNavigator; import org.jaxen.BaseXPath; import org.jaxen.Navigator; import org.jaxen.XPath; import java.io.File; import java.util.Iterator; import java.util.List; public class TestXPath { public static void main(String[] args) throws Exception { File f = new File("C:\\JUNK\\x.xml"); String url = f.toURL().toString(); Navigator nav = new DocumentNavigator(); System.out.println("Document [" + url + "]"); Object document = nav.getDocument(url); XPath contextpath = new BaseXPath("/", nav); System.out.println("Initial Context :: " + contextpath); List list = contextpath.selectNodes(document); Iterator iter = list.iterator(); while (iter.hasNext()) { System.out.println(iter.next()); } } } ============================================================= > XPath support for AXIOM > ----------------------- > > Key: AXIS2-70 > URL: http://issues.apache.org/jira/browse/AXIS2-70 > Project: Apache Axis 2.0 (Axis2) > Type: New Feature > Reporter: Davanum Srinivas > > Adding XPath support can be easily done using Jaxen. Involves implementing > org.jaxen.Navigator. > http://jaxen.org/apidocs/org/jaxen/Navigator.html > More details in their FAQ (http://jaxen.org/faq.html) > I'd highly recommend adding this to our 1.0 list. > thanks, > dims -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira