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>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | String | Nombre | |||
Aattr | String | Atributo | |||
Avalue | String | Valor |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Enode | Node |
Returns | |
---|---|
Type | Description |
Node | Returns the element to which the value of an attribute has been modified. |
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>