StartElement Event
Fired when a begin-element tag is encountered in the document.
Syntax
rest.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 XAttributes properties.
The IsEmpty parameter is true when the event corresponds with an empty element declaration.