public class DOMUtil extends Object
| Constructor and Description |
|---|
DOMUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Element |
findClosestEnclosingElementWithNodeName(Node e,
String nodeName)
Helper function to find an enclosing element with given node name.
|
static Element |
getChild(Element parent,
String name) |
static List<Element> |
getChildren(Element parent,
String name) |
static String |
getText(Element parent)
Loads all of the text content in all offspring of an element.
|
static void |
getText(Element parent,
StringBuilder sb)
Appends all text content in all offspring of an element to a StringBuffer.
|
static String |
toDebugInfo(Element element) |
public static Element findClosestEnclosingElementWithNodeName(Node e, String nodeName)
public static String getText(Element parent)
public static void getText(Element parent, StringBuilder sb)
sb - will get the text content of the element childrenCopyright © 2004–2025. All rights reserved.