Flying Saucer Project Release R8_Arial

org.xhtmlrenderer.pdf
Class DOMUtil

java.lang.Object
  extended by org.xhtmlrenderer.pdf.DOMUtil

public class DOMUtil
extends java.lang.Object


Constructor Summary
DOMUtil()
           
 
Method Summary
static org.w3c.dom.Element getChild(org.w3c.dom.Element parent, java.lang.String name)
           
static java.util.List getChildren(org.w3c.dom.Element parent, java.lang.String name)
           
static java.lang.String getText(org.w3c.dom.Element parent)
          Loads all of the text content in all offspring of an element.
static void getText(org.w3c.dom.Element parent, java.lang.StringBuilder sb)
          Appends all text content in all offspring of an element to a StringBuffer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMUtil

public DOMUtil()
Method Detail

getChild

public static org.w3c.dom.Element getChild(org.w3c.dom.Element parent,
                                           java.lang.String name)

getChildren

public static java.util.List getChildren(org.w3c.dom.Element parent,
                                         java.lang.String name)

getText

public static java.lang.String getText(org.w3c.dom.Element parent)
Loads all of 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 (may be an empty string but will not be null).

getText

public static void getText(org.w3c.dom.Element parent,
                           java.lang.StringBuilder sb)
Appends all text content in all offspring of an element to a StringBuffer. Ignores all attributes, comments and processing instructions.


Flying Saucer Project Release R8_Arial

Flying Saucer Project Home