GetAttributeName, GetAttributePrefix, GetAttributeLocalName,GetAttributeURI Methods

Official Content

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



Index is the index of the attribute element.

Type Returned:

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.



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


Extended Data Types: XMLReader Data Type

See Also

XMLReader Data Type

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.