Share via


DefaultHandler.StartElement(String, String, String, IAttributes) Method

Definition

Receive notification of the start of an element.

[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")]
public virtual void StartElement (string? uri, string? localName, string? qName, Org.Xml.Sax.IAttributes? attributes);
[<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")>]
abstract member StartElement : string * string * string * Org.Xml.Sax.IAttributes -> unit
override this.StartElement : string * string * string * Org.Xml.Sax.IAttributes -> unit

Parameters

uri
String

The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.

localName
String

The local name (without prefix), or the empty string if Namespace processing is not being performed.

qName
String

The qualified name (with prefix), or the empty string if qualified names are not available.

attributes
IAttributes

The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.

Implements

Attributes

Exceptions

Any SAX exception, possibly wrapping another exception.

Remarks

Receive notification of the start of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).

Java documentation for org.xml.sax.helpers.DefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also

  • <xref:Org.Xml.Sax.IContentHandler.StartElement(System.String%2c+System.String%2c+System.String%2c+System.String)>