XMLDocument.lastChild as XMLNode
This is inherited from the XMLNode object.
The result is null except for document and element nodes.
cts.doc("example.xml").root.lastChild.nodeName