Re: Looking for a simple, XPath-like way to retrieve values from XML files

2010-04-20 Thread Michael Glavassevich
Hi Ramon, The JAXP XPath API supports XPath 1.0 expressions [1]. Whatever sample you're looking at is just an *example*. You're certainly not restricted to only selecting attributes. Thanks. [1] http://www.w3.org/TR/xpath/ Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail:

Re: Looking for a simple, XPath-like way to retrieve values from XML files

2010-04-13 Thread Ramon F Herrera
Hi Michael (and other participants), Thanks so much for your recommendation. I downloaded and am experimenting with JAXP. It indeed seems to be a perfect match for my needs. It even comes with a very specific example, XPath Demo that I intend to use as reference. http://jaxp.dev.java.net/

Looking for a simple, XPath-like way to retrieve values from XML files

2010-04-12 Thread Ramon F Herrera
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] =

Re: Looking for a simple, XPath-like way to retrieve values from XML files

2010-04-12 Thread Michael Glavassevich
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: mrgla...@ca.ibm.com