public final class Xml extends Object
| Modifier and Type | Method and Description |
|---|---|
static Element |
asXml(Response response)
Converts the body of the given Response to an XML element.
|
static Element |
asXml(String xml)
Converts the given string to an XML element.
|
static String |
extractXPathValue(String expression,
Element element)
Extracts an XPath value from an XML element and returns the result as a string.
|
public static Element asXml(Response response)
response - The response to be convertedpublic static Element asXml(String xml)
xml - The XML string to be convertedpublic static String extractXPathValue(String expression, Element element)
expression - The XPath expression to use for extractionelement - The element to use the XPath expression onCopyright © 2012. All Rights Reserved.