StartElement Event

Fired when a begin-element tag is encountered in the document.

Syntax

public class DefaultXmlEventListener implements XmlEventListener {
  ...
  public void startElement(XmlStartElementEvent e) {}
  ...
}

public class XmlStartElementEvent {
  public String namespace;
  public String element;
  public String QName;
  public boolean isEmpty;
}

Remarks

The StartElement event is fired when a begin-element tag is found in the document.

The element name is provided through the Element parameter. The attribute names and values (if any) are provided through the XAttributes collection.

The IsEmpty parameter is true when the event corresponds with an empty element declaration.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Android Edition - Version 20.0 [Build 8307]