Parser interface
Parser interface.A parser implements this interface which enables applications to register handlers to receive notification of XML parsing related events and to initiate parsing.
A particular Parser instance is reusable, but not reentrant. An application may use the same Parser instance after a previous invocation, possibly with a different InputSource, but it may not use the same Parser recursively or simultaneously.
If no DocumentHandler is specified, no document events are generated. The DocumentHandler may be specified at any time, also in the middle of a parse, and the parser shall start using the new handler immediately.
If no DTDHandler is specified, no DTD related events are
generated. The DTDHandler may be specified at any time,
also in the middle of a parse, and the parser shall start
using the new handler immediately.
If no EntityResolve is specified, the parser shall
resolve entities itself. The EntityResolve may be specified at
any time, also in the middle of a parse, and the parser shall start
using the new handler immediately.
If no ErrorHandler is specified, no errors or warnings are
generated, except fatal errors. Fatal errors will result in a
SAXException being thrown. The ErrorHandler may be specified at any time,
also in the middle of a parse, and the parser shall start
using the new handler immediately.
The parser will begin parsing the XML document specified by
the input source and call the appropriate DocumentHandler,
DTDHandler, ErrorHandler and EntityResolver methods in the same
order as the events occur in the XML document. The application may not call this method recursively or
multiple times on the same instance.
The parser will begin parsing the XML document specified by
the input source and call the appropriate DocumentHandler,
DTDHandler, ErrorHandler and EntityResolver methods in the same
order as the events occur in the XML document. The application may not call this method recursively or
multiple times on the same instance.
The parser will begin parsing the XML document specified by
the input source and call the appropriate DocumentHandler,
DTDHandler, ErrorHandler and EntityResolver methods in the same
order as the events occur in the XML document. The application may not call this method recursively or
multiple times on the same instance.
void setDTDHandler(DTDHandler* handler)
void setEntityResolver(EntityResolver* resolver)
void setErrorHandler(ErrorHandler* handler)
void parse(InputSource& source)
void parse(const ibxmlchar* systemId)
void parse(const char* systemId)
Alphabetic index Hierarchy of classes