All Frameworks  Class Hierarchy  This Framework  Indexes   

XMLParser Class 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(CATUnicodeString&)
Parses an XML document from a system identifier (URI).
o Parse(CATISAXInputSource_var&)
Parses an XML document.
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 CreateAdapter( const iReader,
oParser)
Factory method.
Parameters:
iReader
The reader to encapsulate
oParser
The resulting parser
o Parse
public virtual Parse( const iSystemId)
Parses an XML document from a system identifier (URI).
See also:
CATISAXParser.Parse
o Parse
public virtual Parse( const iInputSource)
Parses an XML document.
See also:
CATISAXParser.Parse
o SetDTDHandler
public virtual SetDTDHandler( const iDTDHandler)
Allows an application to register a DTD event handler.
See also:
CATISAXParser.SetDTDHandler
o SetDocumentHandler
public virtual SetDocumentHandler( const iDocumentHandler)
Allows an application to register a document event handler.
See also:
CATISAXParser.SetDocumentHandler
o SetEntityResolver
public virtual SetEntityResolver( const iEntityResolver)
Allows an application to register a custom entity resolver.
See also:
CATISAXParser.SetEntityResolver
o SetErrorHandler
public virtual SetErrorHandler( const 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

Copyright © 2003, Dassault Systèmes. All rights reserved.