net.sf.sqs_xml.util
Class XMLUtil

java.lang.Object
  extended bynet.sf.sqs_xml.util.XMLUtil

public class XMLUtil
extends java.lang.Object

Author:
hiroya

Constructor Summary
XMLUtil()
           
 
Method Summary
static java.io.InputStream createInputStream(org.w3c.dom.Document doc)
           
static java.io.InputStream createInputStream(org.w3c.dom.Element node)
           
static javax.xml.parsers.DocumentBuilder createParser()
           
static java.lang.String createString(org.w3c.dom.Element node)
           
static org.apache.xml.serialize.XMLSerializer getSerializer(java.io.OutputStream out)
           
static org.apache.xml.serialize.XMLSerializer getSerializer(java.io.Writer writer)
           
static void marshal(org.w3c.dom.Document document, java.io.OutputStream out)
           
 
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

createParser

public static javax.xml.parsers.DocumentBuilder createParser()
                                                      throws javax.xml.parsers.ParserConfigurationException,
                                                             org.xml.sax.SAXException
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

getSerializer

public static org.apache.xml.serialize.XMLSerializer getSerializer(java.io.OutputStream out)

getSerializer

public static org.apache.xml.serialize.XMLSerializer getSerializer(java.io.Writer writer)

createInputStream

public static java.io.InputStream createInputStream(org.w3c.dom.Document doc)
                                             throws java.io.IOException
Throws:
java.io.IOException

createInputStream

public static java.io.InputStream createInputStream(org.w3c.dom.Element node)
                                             throws java.io.IOException
Throws:
java.io.IOException

createString

public static java.lang.String createString(org.w3c.dom.Element node)

marshal

public static void marshal(org.w3c.dom.Document document,
                           java.io.OutputStream out)
                    throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException