com.ibm.di.util
Class DOMUtils

java.lang.Object
  extended by com.ibm.di.util.DOMUtils

public class DOMUtils
extends Object



Note: This class is for internal usage only. Any dependency from the end-user will not be supported. Changes to this class will happen without a warning.

Since:
7.1

Field Summary
static Document doc
           
 
Constructor Summary
DOMUtils()
           
 
Method Summary
static String elementToString(Element element)
           
static List<Element> getAllElementsWithName(Element parent, String localName, String ns)
           
static DocumentBuilder getDOMParser()
           
static Element getElementByName(Element parent, String localName, String ns)
           
static Element getElementByName(List<Element> children, String localName, String ns)
           
static Element getElementWithAttribute(List<Element> elements, String attrName, String attrNS, String attrValue)
           
static Element parseString(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

public static Document doc
Constructor Detail

DOMUtils

public DOMUtils()
Method Detail

getElementByName

public static final Element getElementByName(Element parent,
                                             String localName,
                                             String ns)

getElementByName

public static final Element getElementByName(List<Element> children,
                                             String localName,
                                             String ns)

getAllElementsWithName

public static final List<Element> getAllElementsWithName(Element parent,
                                                         String localName,
                                                         String ns)

getElementWithAttribute

public static final Element getElementWithAttribute(List<Element> elements,
                                                    String attrName,
                                                    String attrNS,
                                                    String attrValue)

parseString

public static Element parseString(String str)
                           throws Exception
Throws:
Exception

elementToString

public static String elementToString(Element element)
                              throws Exception
Throws:
Exception

getDOMParser

public static DocumentBuilder getDOMParser()
                                    throws Exception
Throws:
Exception