All Frameworks Class Hierarchy This Framework Previous Next Indexes
XMLParser Class CATSAXParserAdapter
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---XMLParser.CATISAXXMLReader
|
+---CATSAXParserAdapter
Usage: you must use this class as is. You should never derive it.
public class CATSAXParserAdapter
Class to adapt a SAX1 CATISAXParser as a SAX2 CATISAXXMLReader.
This class wraps a SAX1 CATISAXParser and makes it act as a SAX2
CATISAXXMLReader, with feature, property, and Namespace support. Note that it is not possible to report
CATISAXContentHandler.SkippedEntity events, since SAX1 does not make that information available. This adapter does not test for duplicate Namespace-qualified attribute names.
- See also:
- CATISAXXMLReader, CATISAXParser
Constructor and Destructor Index
- o
~CATSAXParserAdapter()
- Destructor.
Method Index
- o
CreateAdapter(CATISAXParser_var&,CATISAXXMLReader_var&)
- Factory method.
- o
GetContentHandler(CATISAXContentHandler_var&)
- Retrieves the current content event handler.
- o
GetDTDHandler(CATISAXDTDHandler_var&)
- Retrieves the current DTD event handler.
- o
GetEntityResolver(CATISAXEntityResolver_var&)
- Retrieves the current entity resolver.
- o
GetErrorHandler(CATISAXErrorHandler_var&)
- Retrieves the current error event handler.
- o
GetFeature(CATUnicodeString&,CATBoolean&)
- Retrieves the value of a feature.
- o
GetProperty(CATUnicodeString&,CATVariant&)
- Retrieves up the value of a property.
- o
Parse(CATISAXInputSource_var&)
- Parses an XML document.
- o
Parse(CATUnicodeString&)
- Parses an XML document from a system identifier (URI).
- o
SetContentHandler(CATISAXContentHandler_var&)
- Allows an application to register a content event handler.
- o
SetDTDHandler(CATISAXDTDHandler_var&)
- Allows an application to register a DTD 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.
- o
SetFeature(CATUnicodeString&,CATBoolean)
- Sets the value of a feature.
- o
SetProperty(CATUnicodeString&,CATVariant&)
- Sets the value of a property.
Constructor and Destructor
o ~CATSAXParserAdapter
public virtual ~CATSAXParserAdapter( | ) |
-
Destructor.
Methods
o CreateAdapter
public static HRESULT CreateAdapter( | const CATISAXParser_var& | iParser, |
| CATISAXXMLReader_var& | oReader) |
-
Factory method.
- Parameters:
-
- iParser
- The parser to encapsulate
- oReader
- The resulting reader
o GetContentHandler
public virtual HRESULT GetContentHandler( | CATISAXContentHandler_var& | oContentHandler) |
-
Retrieves the current content event handler.
- See also:
- CATISAXXMLReader.GetContentHandler
o GetDTDHandler
public virtual HRESULT GetDTDHandler( | CATISAXDTDHandler_var& | oDTDHandler) |
-
Retrieves the current DTD event handler.
- See also:
- CATISAXXMLReader.GetDTDHandler
o GetEntityResolver
public virtual HRESULT GetEntityResolver( | CATISAXEntityResolver_var& | oEntityResolver) |
-
Retrieves the current entity resolver.
- See also:
- CATISAXXMLReader.GetEntityResolver
o GetErrorHandler
public virtual HRESULT GetErrorHandler( | CATISAXErrorHandler_var& | oErrorHandler) |
-
Retrieves the current error event handler.
- See also:
- CATISAXXMLReader.GetErrorHandler
o GetFeature
-
Retrieves the value of a feature.
- See also:
- CATISAXXMLReader.GetFeature
o GetProperty
-
Retrieves up the value of a property.
- See also:
- CATISAXXMLReader.GetProperty
o Parse
public virtual HRESULT Parse( | const CATISAXInputSource_var& | iInputSource) |
-
Parses an XML document.
- See also:
- CATISAXXMLReader.Parse
o Parse
-
Parses an XML document from a system identifier (URI).
- See also:
- CATISAXXMLReader.Parse
o SetContentHandler
public virtual HRESULT SetContentHandler( | const CATISAXContentHandler_var& | iContentHandler) |
-
Allows an application to register a content event handler.
- See also:
- CATISAXXMLReader.SetContentHandler
o SetDTDHandler
public virtual HRESULT SetDTDHandler( | const CATISAXDTDHandler_var& | iDTDHandler) |
-
Allows an application to register a DTD event handler.
- See also:
- CATISAXXMLReader.SetDTDHandler
o SetEntityResolver
public virtual HRESULT SetEntityResolver( | const CATISAXEntityResolver_var& | iEntityResolver) |
-
Allows an application to register a custom entity resolver.
- See also:
- CATISAXXMLReader.SetEntityResolver
o SetErrorHandler
public virtual HRESULT SetErrorHandler( | const CATISAXErrorHandler_var& | iErrorHandler) |
-
Allows an application to register an error event handler.
- See also:
- CATISAXXMLReader.SetErrorHandler
o SetFeature
-
Sets the value of a feature.
- See also:
- CATISAXXMLReader.SetFeature
o SetProperty
-
Sets the value of a property.
- See also:
- CATISAXXMLReader.SetProperty
This object is included in the file: CATSAXParserAdapter.h
If needed, your Imakefile.mk should include the module: CATXMLParserItf