Section 25.97. Element.getAttributeNS( ): get the value of an attribute that uses namespaces


25.97. Element.getAttributeNS( ): get the value of an attribute that uses namespaces

DOM Level 2 Core:

25.97.1. Synopsis

 String getAttributeNS(String namespaceURI,                       String localName); 

25.97.1.1. Arguments

namespaceURI

The URI that uniquely identifies the namespace of this attribute or null for no namespace.


localName

The identifier that specifies the name of the attribute within its namespace.

25.97.1.2. Returns

The value of the named attribute, as a string. If the attribute is not defined, this method is supposed to return an empty string, but some implementations return null instead.

25.97.2. Description

This method works just like the getAttribute( ) method, except that the attribute is specified by a combination of namespace URI and local name within that namespace. This method is useful only with XML documents that use namespaces.

25.97.3. See Also

Element.getAttribute( ), Element.getAttributeNodeNS( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net