Official Content

Returns the different name components of an attribute that has name spaces, indicated by an index.

Syntax

&DataType.GetAttributeName(Index)
&DataType.GetAttributePrefix(Index)
&DataType.GetAttributeLocalName(Index)
&DataType.GetAttributeURI(Index)

Where:
Index is the index of the attribute element.

Type Returned:
Character

GetAttributeName Returns the full name, including the namespace if it exists.
GetAttributePrefix Returns only the namespace if it exists.
GetAttributeLocalName Returns the name of the attribute, excluding the namespace if it exists.
GetAttributeURI Returns the URI of the namespace if it exists.

 

Notes

They are valid only for Element type nodes.
The positions are numbered from 1 and up.

Scope

Extended Data Types: XMLReader Data Type

See Also

XMLReader Data Type







Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant