Inheritance diagram for XMLDocumentHandler:
Public Methods | |
Destructor | |
The document handler interface | |
virtual void | docCharacters (const XMLCh *const chars, const unsigned int length, const bool cdataSection)=0 |
virtual void | docComment (const XMLCh *const comment)=0 |
virtual void | docPI (const XMLCh *const target, const XMLCh *const data)=0 |
virtual void | endDocument ()=0 |
virtual void | endElement (const XMLElementDecl &elemDecl, const unsigned int uriId, const bool isRoot)=0 |
virtual void | endEntityReference (const XMLEntityDecl &entDecl)=0 |
virtual void | ignorableWhitespace (const XMLCh *const chars, const unsigned int length, const bool cdataSection)=0 |
virtual void | resetDocument ()=0 |
virtual void | startDocument ()=0 |
virtual void | startElement (const XMLElementDecl &elemDecl, const unsigned int uriId, const XMLCh *const prefixName, const RefVectorOf< XMLAttr > &attrList, const unsigned int attrCount, const bool isEmpty, const bool isRoot)=0 |
virtual void | startEntityReference (const XMLEntityDecl &entDecl)=0 |
virtual void | XMLDecl (const XMLCh *const versionStr, const XMLCh *const encodingStr, const XMLCh *const standaloneStr, const XMLCh *const autoEncodingStr)=0 |
The interface is very similar to org.sax.DocumentHandler, but has some extra methods required to get all the data out.
|
Receive notification of character data. The scanner will call this method to report each chunk of character data. The scanner may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event will come from the same external entity, so that the Locator provides useful information. The parser must not attempt to read from the array outside of the specified range.
Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification of comments in the XML content being parsed. This scanner will call this method for any comments found in the content of the document.
Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification of PI's parsed in the XML content. The scanner will call this method for any PIs it finds within the content of the document.
Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification after the scanner has parsed the end of the document. The scanner will call this method when the current document has been fully parsed. The handler may use this opportunity to do something with the data, clean up temporary data, etc... Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification of the end of an element. This method is called when scanner encounters the end of element tag. There will be a corresponding startElement() event for every endElement() event, but not necessarily the other way around. For empty tags, there is only a startElement() call.
Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification when a referenced entity's content ends This method is called when scanner encounters the end of an entity reference.
Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification of ignorable whitespace in element content. Validating Parsers must use this method to report each chunk of ignorable whitespace (see the W3C XML 1.0 recommendation, section 2.10): non-validating parsers may also use this method if they are capable of parsing and using content models. The scanner may return all contiguous whitespace in a single chunk, or it may split it into several chunks; however, all of the characters in any single event will come from the same external entity, so that the Locator provides useful information. The parser must not attempt to read from the array outside of the specified range.
Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Reset the document handler's state, if required This method is used to give the registered document handler a chance to reset itself. Its called by the scanner at the start of every parse. Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification of the start of a new document This method is the first callback called the scanner at the start of every parse. This is before any content is parsed. Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification of a new start tag This method is called when scanner encounters the start of an element tag. All elements must always have a startElement() tag. Empty tags will only have the startElement() tag and no endElement() tag.
Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification when the scanner hits an entity reference. This is currently useful only to DOM parser configurations as SAX does not provide any api to return this information.
Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |
|
Receive notification of an XML declaration Currently neither DOM nor SAX provide API's to return back this information.
Implemented in DOMParser, IDOMParser, SAX2XMLReaderImpl, and SAXParser. |