net.bpelunit.util
Class XMLUtil

java.lang.Object
  extended by net.bpelunit.util.XMLUtil

public final class XMLUtil
extends Object


Method Summary
static Document parseXML(InputStream in)
           
static Document parseXML(String xmlAsString)
           
static void writeXML(Document xml, File file)
           
static void writeXML(Document xml, OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseXML

public static Document parseXML(String xmlAsString)
                         throws SAXException,
                                UnsupportedEncodingException,
                                IOException,
                                ParserConfigurationException
Parameters:
xmlAsString - document in string form, encoding specified in XML should be UTF-8
Returns:
Throws:
SAXException
IOException
UnsupportedEncodingException
ParserConfigurationException

parseXML

public static Document parseXML(InputStream in)
                         throws SAXException,
                                IOException,
                                ParserConfigurationException
Throws:
SAXException
IOException
ParserConfigurationException

writeXML

public static void writeXML(Document xml,
                            File file)
                     throws IOException,
                            TransformerException
Throws:
IOException
TransformerException

writeXML

public static void writeXML(Document xml,
                            OutputStream outputStream)
                     throws TransformerException
Throws:
TransformerException


Copyright © 2012 Leibniz Universität Hannover. All Rights Reserved.