Purple Code

com.purpletech.xml
Class DOMUtils

java.lang.Object
  |
  +--com.purpletech.xml.DOMUtils

public class DOMUtils
extends java.lang.Object


Constructor Summary
DOMUtils()
           
 
Method Summary
static org.w3c.dom.Node findChildByName(org.w3c.dom.Node parent, java.lang.String name, boolean recurse)
           
static org.w3c.dom.Node findChildByType(org.w3c.dom.Node parent, int type, boolean recurse)
           
static java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String attname)
           
static org.w3c.dom.Node getChild(org.w3c.dom.Node parent, java.lang.String name)
           
static org.w3c.dom.Node getChild(org.w3c.dom.Node parent, java.lang.String name, boolean recurse)
           
static java.util.List getChildren(org.w3c.dom.Node parent, java.lang.String name)
           
static java.util.List getChildren(org.w3c.dom.Node parent, java.lang.String name, boolean recurse)
           
static java.lang.String getTextValue(org.w3c.dom.Node node)
           
static java.lang.String normalize(java.lang.String s)
          Normalizes the given string.
static java.lang.String normalize(java.lang.String s, boolean canonical)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMUtils

public DOMUtils()
Method Detail

findChildByName

public static org.w3c.dom.Node findChildByName(org.w3c.dom.Node parent,
                                               java.lang.String name,
                                               boolean recurse)

getChild

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

getChild

public static org.w3c.dom.Node getChild(org.w3c.dom.Node parent,
                                        java.lang.String name,
                                        boolean recurse)

getChildren

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

getChildren

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

findChildByType

public static org.w3c.dom.Node findChildByType(org.w3c.dom.Node parent,
                                               int type,
                                               boolean recurse)

getTextValue

public static java.lang.String getTextValue(org.w3c.dom.Node node)

getAttribute

public static java.lang.String getAttribute(org.w3c.dom.Node node,
                                            java.lang.String attname)

normalize

public static java.lang.String normalize(java.lang.String s)
Normalizes the given string.


normalize

public static java.lang.String normalize(java.lang.String s,
                                         boolean canonical)

Documentation generated March 5 2003