XPath expressions are much easier to write than detailed Document Object Model navigation code. When you need to extract information from an XML document, the quickest and simplest way is to embed an XPath expression inside your Java program. Discover the javax.xml.xpath package, an XML object-model independent library for querying documents with XPath.
Comments
Jim Bethancourt replied ago:
The first version of this article was an invaluable resource for a project I just rolled off of. Highly recommended!
Voters For This Link (15)
Voters Against This Link (0)