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.
source
share