Home > Language Reference > Classes > XmlParser

EndElement Event

Raised when the parser encounters a closing tag.

Syntax

Public Event EndElement(ByVal sTag As String)

ParameterDescription
sTagTag name.

Remarks

The EndElement event is raised when the parser encounters a closing tag (or an empty-element tag). The tag is still pushed onto the stack at the time the event is fired, so you can access its attributes or associate user data to it using respectively the Attributes and UserData properties.

The sTag parameter contains the name of the encountered closing tag.

There is always an EndElement event for each StartElement event: unclosed tags are automatically closed by the parser and unopened tags are simply ignored. However, if the parser exits abruptly either because of an unrecoverable error or because of an error being raised from the user code, some pending events may not be sent.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A