ILSParserFilter.StartElement(IElement) Method

Definition

The parser will call this method after each <code>Element</code> start tag has been scanned, but before the remainder of the <code>Element</code> is processed.

[Android.Runtime.Register("startElement", "(Lorg/w3c/dom/Element;)S", "GetStartElement_Lorg_w3c_dom_Element_Handler:Org.W3c.Dom.LS.ILSParserFilterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public short StartElement (Org.W3c.Dom.IElement? elementArg);
[<Android.Runtime.Register("startElement", "(Lorg/w3c/dom/Element;)S", "GetStartElement_Lorg_w3c_dom_Element_Handler:Org.W3c.Dom.LS.ILSParserFilterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member StartElement : Org.W3c.Dom.IElement -> int16

Parameters

elementArg
IElement

The newly encountered element. At the time this method is called, the element is incomplete - it will have its attributes, but no children.

Returns

Int16

<ul> <li> <code>FILTER_ACCEPT</code> if the <code>Element</code> should be included in the DOM document being built. </li> <li> <code>FILTER_REJECT</code> if the <code>Element</code> and all of its children should be rejected. </li> <li> <code>FILTER_SKIP</code> if the <code>Element</code> should be skipped. All of its children are inserted in place of the skipped <code>Element</code> node. </li> <li> <code>FILTER_INTERRUPT</code> if the filter wants to stop the processing of the document. Interrupting the processing of the document does no longer guarantee that the resulting DOM tree is XML well-formed. The <code>Element</code> is rejected. </li> </ul> Returning any other values will result in unspecified behavior.

Attributes

Remarks

Java documentation for org.w3c.dom.ls.LSParserFilter.startElement(org.w3c.dom.Element).

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