With \xmltag{#1} one can find the identity of the current node. But how can I find the tag of the parent node?

dr. Hans van der Meer