Org.Xml.Sax.IContentHandler.StartElement Method
Receive notification of the beginning of an element.

Syntax

[Android.Runtime.Register("startElement", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)V", "GetStartElement_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lorg_xml_sax_Attributes_Handler:Org.Xml.Sax.IContentHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void StartElement (string uri, string localName, string qName, IAttributes atts)

See Also

IContentHandler.EndElement(string, System.String, System.String)
IAttributes
Org.Xml.Sax.Helpers.AttributesImpl

Parameters

uri
the Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed
localName
the local name (without prefix), or the empty string if Namespace processing is not being performed
qName
the qualified name (with prefix), or the empty string if qualified names are not available
atts
the attributes attached to the element. If there are no attributes, it shall be an empty Attributes object. The value of this object after startElement returns is undefined

Exceptions

TypeReason
Org.Xml.Sax.SAXExceptionany SAX exception, possibly wrapping another exception

Remarks

Receive notification of the beginning of an element.

  1. the Namespace URI;
  2. the local name; and
  3. the qualified (prefixed) name.
  • the Namespace URI and local name are required when the namespaces property is true (the default), and are optional when the namespaces property is false (if one is specified, both must be);
  • the qualified name is required when the namespace-prefixes property is true, and is optional when the namespace-prefixes property is false (the default).

The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding IContentHandler.EndElement(string, System.String, System.String) event for every startElement event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement event.

This event allows up to three name components for each element:

Any or all of these may be provided, depending on the values of the http://xml.org/sax/features/namespaces and the http://xml.org/sax/features/namespace-prefixes properties:

Note that the attribute list provided will contain only attributes with explicit values (specified or defaulted): #IMPLIED attributes will be omitted. The attribute list will contain attributes used for Namespace declarations (xmlns* attributes) only if the http://xml.org/sax/features/namespace-prefixes property is true (it is false by default, and support for a true value is optional).

Like IContentHandler.Characters(Char[], System.Int32, System.Int32), attribute values may have characters that need more than one char value.

[Android Documentation]

Requirements

Namespace: Org.Xml.Sax
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1