Hi, JAXP has an XPath API. It is supported by Xalan and Java 5+. Here's a reference [1] to the Javadocs.
Thanks. [1] http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/xpath/package-summary.html Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [email protected] E-mail: [email protected] Ramon F Herrera <[email protected]> wrote on 04/12/2010 07:53:54 PM: > Hello, > > My current application runs on C++ and has many lines like this: > > > Variable["user"] = xpath_of("//root/creator/user"); > Variable["project"] = xpath_of("//root/creator/project"); > Variable["projectpath"] = xpath_of("//root/creator/projectpath"); > Variable["title"] = xpath_of("//root/creator/title"); > Variable["notes"] = xpath_of("//root/creator/notes"); > > The LHS is a Map, and the RHS is an XQilla function. > > http://xqilla.sourceforge.net > > Everything is working fine, but it seems that I will have to port the > application to Java. I don't expect to have any problem going from > Xerces-C to Xerces-J. > > I need a simple retrieval function, though. Xerces programming is more > or less equivalent to assembly language. > > Can you folks recommend some XPath -or equivalent- implementation that > runs on Java? > > TIA, > > -Ramon > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]
