How to get the current position in an XML document

I'm going to read XML elements and store in a B + -tree file, I need to know the position indicator for each XML element that will be stored as nodes in B + -tree. I want to know how to get these XML element pointers while reading SAX

+3
source share
1 answer

In your implementation, DocumentHandleradd an implementation for setDocumentLocator()to accept Locator, provided by the implementation of your parser. You can use this class to query the current position in a document in each SAX event.

+1
source

All Articles