net.bpelunit.util
Class XMLUtil
java.lang.Object
net.bpelunit.util.XMLUtil
public final class XMLUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.