| Package | Description | 
|---|---|
| org.w3c.dom | Provides the interfaces for the Document Object Model (DOM). | 
| org.w3c.dom.html | 
| Modifier and Type | Method and Description | 
|---|---|
| NodeList | Node. getChildNodes()A  NodeListthat contains all children of this node. | 
| NodeList | Element. getElementsByTagName(String name)Returns a  NodeListof all descendantElementswith a given tag name, in document order. | 
| NodeList | Document. getElementsByTagName(String tagname)Returns a  NodeListof all theElementsin
 document order with a given tag name and are contained in the
 document. | 
| NodeList | Element. getElementsByTagNameNS(String namespaceURI,
                      String localName)Returns a  NodeListof all the descendantElementswith a given local name and namespace URI in
 document order. | 
| NodeList | Document. getElementsByTagNameNS(String namespaceURI,
                      String localName)Returns a  NodeListof all theElementswith a
 given local name and namespace URI in document order. | 
| Modifier and Type | Method and Description | 
|---|---|
| NodeList | HTMLDocument. getElementsByName(String elementName)Returns the (possibly empty) collection of elements whose
  namevalue is given byelementName. | 
 Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
 Copyright © 2005, 2025, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.