public class DOMUtil extends Object
org.w3c.dom objects.| Constructor and Description |
|---|
DOMUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Node |
getChildNode(Node rootNode,
String childName)
Returns the first child node of the given root node that has the given
name.
|
static Node[] |
getChildNodes(Node rootNode,
String childName)
Returns all child nodes of the given root node with the given name.
|
public static Node getChildNode(Node rootNode, String childName)
rootNode - The root nodechildName - The name of the child nodenull if the root node does not have a
child node with the given namepublic static Node[] getChildNodes(Node rootNode, String childName)
rootNode - The root nodechildName - The name of child nodesCopyright © 2026. All rights reserved.