StartElement Event
Fired when a begin-element tag is encountered in the document.
Syntax
xml.on('StartElement', [callback])
Callback
The 'callback' is called when the 'StartElement' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.namespace e.element e.QName e.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 AttrName, AttrNamespace, AttrPrefix, and AttrValue properties.
The IsEmpty parameter is true when the event corresponds with an empty element declaration.