Class DOMUtil
java.lang.Object
com.openhtmltopdf.pdfboxout.DOMUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementfindClosestEnclosingElementWithNodeName(Node e, String nodeName) Helper function to find an enclosing element with given node name.static ElementgetChildren(Element parent, String name) static StringLoads all of the text content in all offspring of an element.static voidgetText(Element parent, StringBuilder sb) Appends all text content in all offspring of an element to a StringBuffer.
-
Constructor Details
-
DOMUtil
public DOMUtil()
-
-
Method Details
-
getChild
-
getChildren
-
findClosestEnclosingElementWithNodeName
-
getText
-
getText
Appends all text content in all offspring of an element to a StringBuffer. Ignores all attributes, comments and processing instructions.- Parameters:
sb- will get the text content of the element children
-