public class XmlObject
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static XmlObject |
createFrom(java.io.InputStream in)
Parses XML content from the input stream and creates new XML object
|
static XmlObject |
createFrom(java.lang.String xml)
Parses XML content and creates new XML object
|
java.lang.String |
get(java.lang.String path)
Looks up a value in the parsed JSON
|
public static XmlObject createFrom(java.io.InputStream in)
in - an input stream containing XMLjava.lang.IllegalArgumentException - if the input stream fails to read or does not contain a well formed XMLpublic static XmlObject createFrom(java.lang.String xml)
xml - an XML content to parsejava.lang.IllegalArgumentException - if the content does not contain a well formed XMLpublic java.lang.String get(java.lang.String path)
path - a XML path, e.g. //product/code, pointing to the element whose value needs to be retrieved.path location.Copyright © 2018 SAP SE. All Rights Reserved.