|
bool | ConsumeStartElement (String namespaceURI, String localName, String qName, XmlAttributes atts) |
|
virtual void | EndGroup () |
|
override void | Error (System.Xml.XmlException exception) |
|
override void | FatalError (System.Xml.XmlException exception) |
|
virtual void | Init (int startLevel) |
|
bool | IsDecodingAsGroup () |
|
void | SetComplete () |
|
override void | Warning (System.Xml.XmlException exception) |
|
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 | 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) |
|
This class extends the DefaultHandler SAX handler class to add items specific to ASN.1 XER encoding.
bool ConsumeStartElement |
( |
String |
namespaceURI, |
|
|
String |
localName, |
|
|
String |
qName, |
|
|
XmlAttributes |
atts |
|
) |
| |
This method should be used in preference to invoking StartElement directly when a parent SAX handler is delegating to a child SAX handler.
Using this method gives the StartElement method the opportunity to set the mConsumedStartEvent flag to false to signal that the given element does not belong to the group and that the group is complete. This method invokes the StartElement event and returns the resulting value of the mConsumedStartElement flag (true, unless the StartElement method explicitly sets it to false). If mConsumedStartElement is set to false, this method will invoke SetComplete, marking the handler complete and triggering the EndGroup event, if it has not already fired.
If the StartElement method is certain that some other element is required instead of the one given, it is preferable to throw Asn1XmlSaxUnexpElemExc to indicate this. Otherwise, if the given element does not belong to the group being decoded, mConsumedStartElement can be set false and the element ignored. It is then up to the parent SAX handler to recognize the element as part of a different group or report it as an unexpected element. The StartElement method should not set mConsumedStartEvent false except when mLevel <= mStartLevel, since this is a precondition for SetComplete.
- Returns
- true if the StartElement method consumed the given element or false if not.
- Exceptions
-
Asn1XmlSaxUnexpElemExc | if certain that some other element is expected. |