public class XMLHelper extends Object
| Constructor and Description |
|---|
XMLHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
getXMLDocument(InputStream in) |
static Document |
getXMLDocument(String request) |
static Node |
getXMLNode(String str) |
static void |
printXML(Document doc) |
static void |
printXMLElement(Element element,
OutputStream out) |
static void |
printXMLNode(Node node,
OutputStream out) |
static void |
sendXML(Document doc,
OutputStream out) |
public static Document getXMLDocument(InputStream in) throws Exception
Exceptionpublic static Document getXMLDocument(String request) throws Exception
Exceptionpublic static void printXML(Document doc) throws TransformerException
TransformerExceptionpublic static void printXMLElement(Element element, OutputStream out) throws TransformerException
TransformerExceptionpublic static void printXMLNode(Node node, OutputStream out) throws TransformerException
TransformerExceptionpublic static void sendXML(Document doc, OutputStream out) throws Exception
ExceptionCopyright © 2014. All Rights Reserved.