Share via


IDocumentHandler.StartElement(String, IAttributeList) Method

Definition

Caution

deprecated

Receive notification of the beginning of an element.

[Android.Runtime.Register("startElement", "(Ljava/lang/String;Lorg/xml/sax/AttributeList;)V", "GetStartElement_Ljava_lang_String_Lorg_xml_sax_AttributeList_Handler:Org.Xml.Sax.IDocumentHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public void StartElement (string? name, Org.Xml.Sax.IAttributeList? atts);
[<Android.Runtime.Register("startElement", "(Ljava/lang/String;Lorg/xml/sax/AttributeList;)V", "GetStartElement_Ljava_lang_String_Lorg_xml_sax_AttributeList_Handler:Org.Xml.Sax.IDocumentHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member StartElement : string * Org.Xml.Sax.IAttributeList -> unit

Parameters

name
String

The element type name.

atts
IAttributeList

The attributes attached to the element, if any.

Attributes

Exceptions

Any SAX exception, possibly wrapping another exception.

Remarks

Receive notification of the beginning of an element.

The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding endElement() 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.

If the element name has a namespace prefix, the prefix will still be attached. Note that the attribute list provided will contain only attributes with explicit values (specified or defaulted): #IMPLIED attributes will be omitted.

Java documentation for org.xml.sax.DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList).

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