All Frameworks Class Hierarchy This Framework Previous Next Indexes
XMLParser Class CATSAXXMLReaderAdapter
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---XMLParser.CATISAXParser
|
+---CATSAXXMLReaderAdapter
Usage: you must use this class as is. You should never derive it.
public class CATSAXXMLReaderAdapter
Class to adapt a SAX2 CATISAXXMLReader as a SAX1 CATISAXParser.
This class wraps a SAX2 CATISAXXMLReader and makes it act as a SAX1
CATISAXParser. The
CATISAXXMLReader must support a TRUE value for the http://xml.org/sax/features/namespace-prefixes property or parsing will fail with a
CATSAXException ; if the
CATISAXXMLReader supports a FALSE value for the http://xml.org/sax/features/namespaces property, that will also be used to improve efficiency
- See also:
- CATISAXXMLReader, CATISAXParser
Constructor and Destructor Index
- o
~CATSAXXMLReaderAdapter()
- Destructor.
Method Index
- o
CreateAdapter(CATISAXXMLReader_var&,CATISAXParser_var&)
- Factory method.
- o
Parse(CATISAXInputSource_var&)
- Parses an XML document.
- o
Parse(CATUnicodeString&)
- Parses an XML document from a system identifier (URI).
- o
SetDTDHandler(CATISAXDTDHandler_var&)
- Allows an application to register a DTD event handler.
- o
SetDocumentHandler(CATISAXDocumentHandler_var&)
- Allows an application to register a document event handler.
- o
SetEntityResolver(CATISAXEntityResolver_var&)
- Allows an application to register a custom entity resolver.
- o
SetErrorHandler(CATISAXErrorHandler_var&)
- Allows an application to register an error event handler.
Constructor and Destructor
o ~CATSAXXMLReaderAdapter
public virtual ~CATSAXXMLReaderAdapter( | ) |
-
Destructor.
Methods
o CreateAdapter
public static HRESULT CreateAdapter( | const CATISAXXMLReader_var& | iReader, |
| CATISAXParser_var& | oParser) |
-
Factory method.
- Parameters:
-
- iReader
- The reader to encapsulate
- oParser
- The resulting parser
o Parse
public virtual HRESULT Parse( | const CATISAXInputSource_var& | iInputSource) |
-
Parses an XML document.
- See also:
- CATISAXParser.Parse
o Parse
-
Parses an XML document from a system identifier (URI).
- See also:
- CATISAXParser.Parse
o SetDTDHandler
public virtual HRESULT SetDTDHandler( | const CATISAXDTDHandler_var& | iDTDHandler) |
-
Allows an application to register a DTD event handler.
- See also:
- CATISAXParser.SetDTDHandler
o SetDocumentHandler
public virtual HRESULT SetDocumentHandler( | const CATISAXDocumentHandler_var& | iDocumentHandler) |
-
Allows an application to register a document event handler.
- See also:
- CATISAXParser.SetDocumentHandler
o SetEntityResolver
public virtual HRESULT SetEntityResolver( | const CATISAXEntityResolver_var& | iEntityResolver) |
-
Allows an application to register a custom entity resolver.
- See also:
- CATISAXParser.SetEntityResolver
o SetErrorHandler
public virtual HRESULT SetErrorHandler( | const CATISAXErrorHandler_var& | iErrorHandler) |
-
Allows an application to register an error event handler.
- See also:
- CATISAXParser.SetErrorHandler
This object is included in the file: CATSAXXMLReaderAdapter.h
If needed, your Imakefile.mk should include the module: CATXMLParserItf