Section 25.76. Document.getElementsByTagNameNS( ): return all Element nodes with a specified name and namespace


25.76. Document.getElementsByTagNameNS( ): return all Element nodes with a specified name and namespace

DOM Level 2 Core:

25.76.1. Synopsis

 Node[] getElementsByTagNameNS(String namespaceURI,                               String localName); 

25.76.1.1. Arguments

namespaceURI

The unique identifier of the namespace of the desired elements, or "*" to match all namespaces.


localName

The local name of the desired elements, or "*" to match any local name.

25.76.1.2. Returns

A read-only array (technically, a NodeList) of all Element nodes in the document tree that have the specified namespace and local name.

25.76.2. Description

This method works just like getElementsByTagName( ), except that it searches for elements by namespace and name. It is useful only with XML documents that use namespaces.




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