According to the mkiv manual, there is a \xmltag which I think should translate to xml.tag() in lua.
But while xml.name() works, xml.tag() fails:
attempt to call a nil value (field 'tag')
Should xml.tag() work?
G