Package org.xhtmlrenderer.pdf
Class DOMUtil
java.lang.Object
org.xhtmlrenderer.pdf.DOMUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Element
getChildren
(Element parent, String name) static String
Loads all 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 StringBuilder.
-
Constructor Details
-
DOMUtil
public DOMUtil()
-
-
Method Details
-
getChild
-
getChildren
-
getText
Loads all the text content in all offspring of an element. Ignores all attributes, comments and processing instructions.- Returns:
- a String with the text content of an element (maybe an empty string but will not be null).
-
getText
Appends all text content in all offspring of an element to a StringBuilder. Ignores all attributes, comments and processing instructions.
-