ASN1C C# Runtime Library  7.8
Public Member Functions | List of all members
XmlSaxDefaultHandler Class Reference
Inheritance diagram for XmlSaxDefaultHandler:
XmlSaxContentHandler XmlSaxErrorHandler XmlSaxEntityResolver Asn1XerSaxHandler Asn1OpenType.SaxHandler Asn1XmlAnyElem.XsdAnySaxHandler Asn1XmlSaxSimpleType

Public Member Functions

virtual void Characters (char[] ch, int start, int length)
 
virtual void EndDocument ()
 
virtual void EndElement (System.String ns, System.String localName, System.String qName)
 
virtual void EndPrefixMapping (System.String prefix)
 
virtual void Error (System.Xml.XmlException exception)
 
virtual void FatalError (System.Xml.XmlException exception)
 
virtual void IgnorableWhitespace (char[] chars, int start, int length)
 
virtual void ProcessingInstruction (System.String target, System.String data)
 
virtual XmlSource ResolveEntity (System.String publicId, System.String systemId)
 
virtual void SetDocumentLocator (XmlSaxLocator locator)
 
virtual void SkippedEntity (System.String name)
 
virtual void StartDocument ()
 
virtual void StartElement (System.String ns, System.String localName, System.String qName, XmlAttributes attributes)
 
virtual void StartPrefixMapping (System.String prefix, System.String uri)
 
virtual void Warning (System.Xml.XmlException exception)
 

Detailed Description

This class provides the base implementation for the management of XML documents parsing.

Member Function Documentation

◆ Characters()

virtual void Characters ( char []  ch,
int  start,
int  length 
)
virtual

This method manage the notification when Characters element were found.

Parameters
chThe array with the characters founds
startThe index of the first position of the characters found
lengthSpecify how many characters must be read from the array

Implements XmlSaxContentHandler.

◆ EndDocument()

virtual void EndDocument ( )
virtual

This method manage the notification when the end document node were found

Implements XmlSaxContentHandler.

◆ EndElement()

virtual void EndElement ( System.String  ns,
System.String  localName,
System.String  qName 
)
virtual

This method manage the notification when the end element node were found

Parameters
nsThe namespace of the element
localNameThe local name of the element
qNameThe long name (qualify name) of the element

Implements XmlSaxContentHandler.

Reimplemented in Asn1OpenType.SaxHandler, and Asn1XmlAnyElem.XsdAnySaxHandler.

◆ EndPrefixMapping()

virtual void EndPrefixMapping ( System.String  prefix)
virtual

This method manage the event when an area of expecific URI prefix was ended.

Parameters
prefixThe prefix that ends

Implements XmlSaxContentHandler.

◆ Error()

virtual void Error ( System.Xml.XmlException  exception)
virtual

This method manage when an error exception ocurrs in the parsing process

Parameters
exceptionThe exception thrown by the parser

Implements XmlSaxErrorHandler.

Reimplemented in Asn1XerSaxHandler.

◆ FatalError()

virtual void FatalError ( System.Xml.XmlException  exception)
virtual

This method manage when a fatal error exception ocurrs in the parsing process

Parameters
exceptionThe exception Thrown by the parser

Implements XmlSaxErrorHandler.

Reimplemented in Asn1XerSaxHandler.

◆ IgnorableWhitespace()

virtual void IgnorableWhitespace ( char []  chars,
int  start,
int  length 
)
virtual

This method manage the event when a ignorable whitespace node were found

Parameters
charsThe array with the ignorable whitespaces
startThe array offset at the ignorable whitespace
lengthThe length of the whitespaces

Implements XmlSaxContentHandler.

◆ ProcessingInstruction()

virtual void ProcessingInstruction ( System.String  target,
System.String  data 
)
virtual

This method manage the event when a processing instruction were found

Parameters
targetThe processing instruction target
dataThe processing instruction data

Implements XmlSaxContentHandler.

◆ ResolveEntity()

virtual XmlSource ResolveEntity ( System.String  publicId,
System.String  systemId 
)
virtual

Allow the application to resolve external entities.

Parameters
publicIdThe public identifier of the external entity being referenced, or null if none was supplied.
systemIdThe system identifier of the external entity being referenced.
Returns
A XmlSourceSupport object describing the new input source, or null to request that the parser open a regular URI connection to the system identifier.

Implements XmlSaxEntityResolver.

◆ SetDocumentLocator()

virtual void SetDocumentLocator ( XmlSaxLocator  locator)
virtual

This method is not supported, is include for compatibility

Parameters
locatorA XmlSaxLocator object that can return the location of any events into the XML document

Implements XmlSaxContentHandler.

◆ SkippedEntity()

virtual void SkippedEntity ( System.String  name)
virtual

This method manage the event when a skipped entity were found

Parameters
nameThe name of the skipped entity

Implements XmlSaxContentHandler.

◆ StartDocument()

virtual void StartDocument ( )
virtual

This method manage the event when a start document node were found

Implements XmlSaxContentHandler.

◆ StartElement()

virtual void StartElement ( System.String  ns,
System.String  localName,
System.String  qName,
XmlAttributes  attributes 
)
virtual

This method manage the event when a start element node were found

Parameters
nsThe namespace uri of the element tag
localNameThe local name of the element
qNameThe Qualify (long) name of the element
attributesThe list of attributes of the element

Implements XmlSaxContentHandler.

Reimplemented in Asn1OpenType.SaxHandler, and Asn1XmlAnyElem.XsdAnySaxHandler.

◆ StartPrefixMapping()

virtual void StartPrefixMapping ( System.String  prefix,
System.String  uri 
)
virtual

This methods indicates the start of a prefix area in the XML document.

Parameters
prefixThe prefix of the area
uriThe namespace uri of the prefix area

Implements XmlSaxContentHandler.

◆ Warning()

virtual void Warning ( System.Xml.XmlException  exception)
virtual

This method manage when a warning exception ocurrs in the parsing process

Parameters
exceptionThe exception Thrown by the parser

Implements XmlSaxErrorHandler.

Reimplemented in Asn1XerSaxHandler.