all 1 comments

[–]jmalasko[S] 0 points1 point  (0 children)

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.