public class XmlUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.Document |
getXmlDocument(java.io.InputStream in)
Parses XML contained in the input stream
|
static org.w3c.dom.Document |
getXmlDocument(java.lang.String xmlBody)
Parses XML contained in a
String |
public static org.w3c.dom.Document getXmlDocument(java.lang.String xmlBody)
StringxmlBody - an XML content.xmlBody.java.lang.IllegalArgumentException - when the xmlBody does not contain a well formed XML.public static org.w3c.dom.Document getXmlDocument(java.io.InputStream in)
in - an input stream to read XML content from.java.lang.IllegalArgumentException - when the input stream failed to read or does not contain a well formed XML.Copyright © 2018 SAP SE. All Rights Reserved.