XmlSaxParser Class Reference
Public Member Functions | |
virtual XmlSaxContentHandler | GetContentHandler () |
virtual XmlSaxEntityResolver | GetEntityResolver () |
virtual XmlSaxErrorHandler | GetErrorHandler () |
virtual void | Parse (XmlSource source) |
virtual void | Parse (System.IO.Stream stream, System.String URI) |
virtual void | Parse (System.IO.Stream stream) |
virtual void | Parse (System.String filepath) |
virtual void | Parse (System.IO.FileInfo filepath) |
virtual void | Parse (XmlSource source, XmlSaxContentHandler handler) |
virtual void | Parse (System.IO.Stream stream, XmlSaxContentHandler handler, System.String URI) |
virtual void | Parse (System.IO.Stream stream, XmlSaxContentHandler handler) |
virtual void | Parse (System.String filepath, XmlSaxContentHandler handler) |
virtual void | Parse (System.IO.FileInfo filepath, XmlSaxContentHandler handler) |
virtual void | SetContentHandler (XmlSaxContentHandler handler) |
virtual void | SetDocumentHandler (XmlSaxContentHandler handler) |
virtual void | SetEntityResolver (XmlSaxEntityResolver resolver) |
virtual void | SetErrorHandler (XmlSaxErrorHandler handler) |
XmlSaxParser () | |
Static Public Member Functions | |
static XmlSaxParser | CloneInstance (XmlSaxParser instance) |
static XmlSaxParser | NewInstance () |
Protected Attributes | |
XmlSaxContentHandler | callBackHandler |
XmlSaxEntityResolver | entityResolver |
XmlSaxErrorHandler | errorHandler |
XmlSaxLexicalHandler | lexical |
XmlSaxLocatorImpl | locator |
bool | namespaceAllowed |
System.String | parserFileName |
System.Xml.XmlTextReader | reader |
Properties | |
bool | NamespaceAllowed [get, set] |
Detailed Description
Emulates the SAX parsers behaviours.
Constructor & Destructor Documentation
XmlSaxParser | ( | ) |
Public constructor for the class.
Member Function Documentation
static XmlSaxParser CloneInstance | ( | XmlSaxParser | instance | ) | [static] |
Create a clone instance of 'XmlSaxParser'.
- Parameters:
-
instance The XmlSaxParser
instance to be cloned.
- Returns:
- A clone 'XmlSaxParser' instance.
virtual XmlSaxContentHandler GetContentHandler | ( | ) | [virtual] |
Obtains the object that will handle all the content events.
- Returns:
- The object that handles the content events.
virtual XmlSaxEntityResolver GetEntityResolver | ( | ) | [virtual] |
Returns the current entity resolver.
- Returns:
- The current entity resolver, or null if none has been registered.
virtual XmlSaxErrorHandler GetErrorHandler | ( | ) | [virtual] |
Assigns the object that will handle all the error events.
- Returns:
- The object that handles the error events.
static XmlSaxParser NewInstance | ( | ) | [static] |
Returns a new instance of 'XmlSaxParser'.
- Returns:
- A new 'XmlSaxParser' instance.
virtual void Parse | ( | XmlSource | source | ) | [virtual] |
Parses the specified 'XmlSource' and processes the events over the specified handler, and resolves the entities with the specified URI.
- Parameters:
-
source The 'XmlSource' instance with the XML.
virtual void Parse | ( | System.IO.Stream | stream, | |
System.String | URI | |||
) | [virtual] |
Parses the specified stream and processes the events over previously specified handler, and resolves the external entities with the specified URI.
- Parameters:
-
stream The stream with the XML. URI The namespace URI for resolve external etities.
virtual void Parse | ( | System.IO.Stream | stream | ) | [virtual] |
Parses the specified stream and process the events over previusly specified handler.
- Parameters:
-
stream The stream with the XML.
virtual void Parse | ( | System.String | filepath | ) | [virtual] |
Parses the specified file path and processes the events over previously specified handler.
- Parameters:
-
filepath The path of the file with the XML.
virtual void Parse | ( | System.IO.FileInfo | filepath | ) | [virtual] |
Parses the specified file and process the events over previously specified handler.
- Parameters:
-
filepath The file with the XML.
virtual void Parse | ( | XmlSource | source, | |
XmlSaxContentHandler | handler | |||
) | [virtual] |
Parses the specified 'XmlSource' instance and process the events over the specified handler, and resolves the entities with the specified URI.
- Parameters:
-
source The 'XmlSource' that contains the XML. handler The handler that manages the parser events.
virtual void Parse | ( | System.IO.Stream | stream, | |
XmlSaxContentHandler | handler, | |||
System.String | URI | |||
) | [virtual] |
Parses the specified stream and process the events over the specified handler, and resolves the entities with the specified URI.
- Parameters:
-
stream The stream with the XML. handler The handler that manage the parser events. URI The namespace URI for resolve external etities.
virtual void Parse | ( | System.IO.Stream | stream, | |
XmlSaxContentHandler | handler | |||
) | [virtual] |
Parses the specified stream and process the events over the specified handler.
- Parameters:
-
stream The stream with the XML. handler The handler that manage the parser events.
virtual void Parse | ( | System.String | filepath, | |
XmlSaxContentHandler | handler | |||
) | [virtual] |
Parses the specified file path and process the events over the specified handler.
- Parameters:
-
filepath The path of the file to be used. handler The handler that manage the parser events.
virtual void Parse | ( | System.IO.FileInfo | filepath, | |
XmlSaxContentHandler | handler | |||
) | [virtual] |
Parses the specified file and process the events over the specified handler.
- Parameters:
-
filepath The file to be used. handler The handler that manages the parser events.
virtual void SetContentHandler | ( | XmlSaxContentHandler | handler | ) | [virtual] |
Assigns the object that will handle all the content events.
- Parameters:
-
handler The object that handles the content events.
virtual void SetDocumentHandler | ( | XmlSaxContentHandler | handler | ) | [virtual] |
Assigns the object that will handle all the document events.
- Parameters:
-
handler The object that handles the content events.
virtual void SetEntityResolver | ( | XmlSaxEntityResolver | resolver | ) | [virtual] |
Allows an application to register an entity resolver.
- Parameters:
-
resolver The entity resolver.
virtual void SetErrorHandler | ( | XmlSaxErrorHandler | handler | ) | [virtual] |
Assigns the object that will handle all the error events.
- Parameters:
-
handler The object that handles the errors events.
Member Data Documentation
XmlSaxContentHandler callBackHandler [protected] |
XmlSaxContentHandler variable manages the Content events of a XML document.
XmlSaxEntityResolver entityResolver [protected] |
XmlSaxEntityResolver variable for resolving entities
XmlSaxErrorHandler errorHandler [protected] |
XmlSaxErrorHandler variable manages errors during the parsing of a XML document
XmlSaxLexicalHandler lexical [protected] |
XmlSaxLexicalHandler variable manages the Content events of a XML document
XmlSaxLocatorImpl locator [protected] |
XmlSaxLocatorImpl variable to emulates the SAX LocatorImpl behaviors.
bool namespaceAllowed [protected] |
Bool variable manages XML document namespace processing.
System.String parserFileName [protected] |
String variable holds the XER or XML message file name
System.Xml.XmlTextReader reader [protected] |
XmlTextReader variable manages XML document parsing.
Property Documentation
bool NamespaceAllowed [get, set] |
Indicates whether the 'XmlSaxParser' allows namespaces.