com.ebmwebsourcing.commons.schema.util
Class XMLUtil

java.lang.Object
  extended by com.ebmwebsourcing.commons.schema.util.XMLUtil

public class XMLUtil
extends java.lang.Object

Author:
Nicolas Salatge - eBM WebSourcing

Constructor Summary
XMLUtil()
           
 
Method Summary
static java.lang.String createStringFromDOMDocument(org.w3c.dom.Node document)
          Create a String result from a DOM document
static java.lang.String createStringFromDOMNode(org.w3c.dom.Node node)
          Create a String result from a DOM Node
static java.lang.String createStringFromDOMNode(org.w3c.dom.Node node, boolean omitDeclaration)
          Create a String result from a DOM Node
static java.lang.String createStringFromDOMNodeList(org.w3c.dom.NodeList list)
          Create a String from a Node list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtil

public XMLUtil()
Method Detail

createStringFromDOMDocument

public static java.lang.String createStringFromDOMDocument(org.w3c.dom.Node document)
                                                    throws javax.xml.transform.TransformerException
Create a String result from a DOM document

Parameters:
document - the DOM Document. Must not be null
Returns:
a String representation of the DOM Document
Throws:
javax.xml.transform.TransformerException

createStringFromDOMNode

public static java.lang.String createStringFromDOMNode(org.w3c.dom.Node node)
                                                throws javax.xml.transform.TransformerException
Create a String result from a DOM Node

Parameters:
node - the DOM Node. Must not be null
Returns:
a String representation of the DOM Document
Throws:
javax.xml.transform.TransformerException

createStringFromDOMNodeList

public static java.lang.String createStringFromDOMNodeList(org.w3c.dom.NodeList list)
                                                    throws javax.xml.transform.TransformerException
Create a String from a Node list

Parameters:
list -
Returns:
Throws:
javax.xml.transform.TransformerException

createStringFromDOMNode

public static java.lang.String createStringFromDOMNode(org.w3c.dom.Node node,
                                                       boolean omitDeclaration)
                                                throws javax.xml.transform.TransformerException
Create a String result from a DOM Node

Parameters:
node - the DOM Node. Must not be null
Returns:
a String representation of the DOM Document
Throws:
javax.xml.transform.TransformerException


Copyright © 2008 eBM WebSourcing. All Rights Reserved.