Extracting XPath from XML Documents

In previous sections, we discussed using XPath to navigate and access XML content. In this section, we will discuss how to extract XPaths from an XML document. We will extract XPaths using SAX parsing to improve the processing’s scalability. There are several key components in this process:

Image  Creating a stack to keep track of the XPath

Image  Using SAX to push the XPath elements to the stack and record the XPaths

Image

Get Oracle Database 11g Building Oracle XML DB Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.