public class XMLHelper extends Object
| Constructor and Description |
|---|
XMLHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Node |
deserialize(Object node)
This method serializes the supplied XML object to a string.
|
static Node |
deserializeString(String doc)
This method deserializes the supplied document.
|
static String |
evaluate(String xpath,
Object node)
This method evaluates the xpath expression on the supplied
node.
|
protected static Node |
getNode(Object node)
This method converts the supplied object to a DOM
node.
|
static Node |
selectNode(String xpath,
Object node)
This method obtains the node, identified by the xpath
expression, from the supplied node.
|
static String |
serialize(Object node)
This method serializes the supplied XML object to a string.
|
static String |
serializeDOMSource(DOMSource domSource)
This method serializes the supplied DOM node to a string.
|
static String |
serializeNode(Node node)
This method serializes the supplied DOM node to a string.
|
public static String serialize(Object node)
node - The nodepublic static String serializeNode(Node node)
node - The nodepublic static String serializeDOMSource(DOMSource domSource)
domSource - The DOM sourcepublic static Node deserialize(Object node)
node - The nodepublic static Node deserializeString(String doc)
doc - The XML documentpublic static String evaluate(String xpath, Object node)
xpath - The xpath expressionnode - The nodepublic static Node selectNode(String xpath, Object node)
xpath - The xpath expressionnode - The root nodeCopyright © 2015 Red Hat, Inc.. All rights reserved.