#include <qgarlib/sax/XMLReader.H>
Inheritance diagram for qgxml::XMLReader:

XMLReader is the interface that an XML parser's SAX2 driver must implement. This interface allows an application to set and query features and properties in the parser, to register event handlers for document processing, and to initiate a document parse.
This class is an adaptation for C++ of the interface of the same name implemented in the Java SAX API(http://www.saxproject.org).
Definition at line 76 of file XMLReader.H.
Public Member Functions | |
| virtual void | parse (InputSource &input)=0 |
| Parse an XML document. | |
| virtual void | parse (const std::string &systemId)=0 |
| Parse an XML document from a system identifier (URI). | |
Destructor | |
| virtual | ~XMLReader () |
| Destructor. | |
Access | |
| virtual ContentHandler * | getContentHandler () const =0 |
| Return the current content handler. | |
| virtual DTDHandler * | getDTDHandler () const =0 |
| Return the current DTD handler. | |
| virtual EntityResolver * | getEntityResolver () const =0 |
| Return the current entity resolver. | |
| virtual ErrorHandler * | getErrorHandler () const =0 |
| Return the current error handler. | |
| virtual bool | getFeature (const std::string &name) const =0 |
| Look up the value of a feature flag. | |
| virtual void * | getProperty (const std::string &name) const =0 |
| Look up the value of a property. | |
Transform | |
| virtual void | setContentHandler (ContentHandler *handler)=0 |
| Allow an application to register a content event handler. | |
| virtual void | setDTDHandler (DTDHandler *handler)=0 |
| Allow an application to register a DTD event handler. | |
| virtual void | setEntityResolver (EntityResolver *resolver)=0 |
| Allow an application to register an entity resolver. | |
| virtual void | setErrorHandler (ErrorHandler *handler)=0 |
| Allow an application to register an error event handler. | |
| virtual void | setFeature (const std::string &name, bool value)=0 |
| Set the value of a feature flag. | |
| virtual void | setProperty (const std::string &name, void *value)=0 |
| Set the value of a property. | |
|
|
Destructor.
Definition at line 89 of file XMLReader.H. |
|
|
Return the current content handler.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
|
Return the current DTD handler.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
|
Return the current entity resolver.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
|
Return the current error handler.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
|
Look up the value of a feature flag.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
|
Look up the value of a property.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
|
Parse an XML document from a system identifier (URI). This method is a shortcut for the common case of reading a document from a system identifier. It is the exact equivalent of parse(new InputSource(systemId));
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
|
Parse an XML document. The application can use this method to instruct the XML reader to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI). During the parse, the XMLReader will provide information about the XML document through the registered event handlers.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. Referenced by qgar::QgarAppDescr::init(). |
|
|
Allow an application to register a content event handler. If the application does not register a content handler, all content events reported by the SAX parser will be silently ignored. Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. Referenced by qgar::QgarAppDescr::init(). |
|
|
Allow an application to register a DTD event handler. If the application does not register a DTD handler, all DTD events reported by the SAX parser will be silently ignored. Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
|
Allow an application to register an entity resolver. If the application does not register an entity resolver, the XMLReader will perform its own default resolution. Applications may register a new or different resolver in the middle of a parse, and the SAX parser must begin using the new resolver immediately.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
|
Allow an application to register an error event handler. If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
||||||||||||
|
Set the value of a feature flag.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |
|
||||||||||||
|
Set the value of a property.
Implemented in qgxml::QtXMLReaderAdaptor, and qgxml::XercesXMLReaderAdaptor. |