Returns a string with the attributes and values of the element. The node can be passed as argument or as attribute.

1 dom.element.getAttributeNames

<dom.element.getAttributeNames
    name='name'
    attr='attr'
    value='value'
>
    <node /> ?
</dom.element.getAttributeNames>
Example

Establish the value of an attribute of an element.

Copy
<xsql-script name='dom_element_getAttributeNames'>

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

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

        <!-- Return: color='green' type='text' -->
        <println>
            <dom.element.getAttributeNames>
                <elem_text/>
            </dom.element.getAttributeNames>
        </println>

    </body>
</xsql-script>