Return the name of the tag indicated by the element. The node can be passed as argument or as attribute.
 

1 dom.element.getTagName

<dom.element.getTagName name='name'>
    <node /> ?
</dom.element.getTagName>
Example

Get the name of the two element nodes of the file.

Copy
<xsql-script name='dom_element_getTagName'>
    <body>
        <set name='root'>
            <dom.parse><file name='c:\tmp\data.xml' type='absolute' /></dom.parse>
        </set>

        <!-- It is situated in the text node which contains the text hello -->
        <set name='elem_text'>
            <dom.element.getFirstChildElement><root /></dom.element.getFirstChildElement>
        </set>

        <!-- Return: file -->
        <println>
            <dom.element.getTagName>
                <root/>
            </dom.element.getTagName>
        </println>

        <!-- Return: item -->
        <println>
            <dom.element.getTagName>
                <elem_text/>
            </dom.element.getTagName>
        </println>

    </body>
</xsql-script>