ISAXContentHandler
A version of this page is also available for
4/8/2010
The ISAXContentHandler interface receives notification of the logical content of a document. This is the main interface implemented by most Simple API for XML (SAX) applications. If the application must be informed of basic parsing events, it implements this interface and registers an instance with the XML Reader using the ISAXXMLReader::putContentHandler Method method. The reader then uses this instance to report basic document-related events, such as the start of elements, the end of elements, and character data.
Note
Only one content handler can be registered at a time.
This interface handles events passed by the SAXXMLReader. The order of events handled by ISAXContentHandler follows the order of the information within the document being parsed. For example, the ISAXContentHandler interface handles all of an element's content, including character data, processing instructions, and subelements, in order after first handling the startElement event and before handling the endElement event.
Method | Description |
---|---|
Receives notification of character data. |
|
Receives notification of the end of a document. |
|
Receives notification of the beginning of a document. |
|
Receives notification of the end of an element. |
|
Receives notification of the beginning of an element. |
|
Receives notification of ignorable white space in element content. This method is not called in the current implementation because the SAX2 implementation is non-validating. |
|
Ends the scope of a prefix-URI name space mapping. |
|
Begins the scope of a prefix-URI name space mapping. |
|
Receives notification of a processing instruction. |
|
Receives an interface for locating the origin of SAX document events. |
|
Receives notification of a skipped entity. |
Requirements
Header | msxml2.h, msxml2.idl |
Library | uuid.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |