| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Element | findClosestEnclosingElementWithNodeName(Node e, String nodeName)
Helper function to find an enclosing element with given node name. |
| public static Element | |
| public static List | |
| public static String | |
| public static void | getText(Element parent, StringBuilder
will get the text content of the element children sb)Appends all text content in all offspring of an element to a StringBuffer. |
| DOMUtil | back to summary |
|---|---|
| public DOMUtil() | |
| findClosestEnclosingElementWithNodeName | back to summary |
|---|---|
| public static Element findClosestEnclosingElementWithNodeName(Node e, String nodeName) Helper function to find an enclosing element with given node name. Returns null on failure. | |
| getChild | back to summary |
|---|---|
| public static Element getChild(Element parent, String name) | |
| getChildren | back to summary |
|---|---|
| public static List | |
| getText | back to summary |
|---|---|
| public static String getText(Element parent) Loads all of the text content in all offspring of an element. Ignores all attributes, comments and processing instructions.
| |
| getText | back to summary |
|---|---|
| public static void getText(Element parent, StringBuilder sb) Appends all text content in all offspring of an element to a StringBuffer. Ignores all attributes, comments and processing instructions.
| |