public final class XMLUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
XMLUtil()
Utility class, should not be instantiated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getNodeValue(org.w3c.dom.Element node)
This will get the text value of an element.
|
static org.w3c.dom.Document |
parse(java.io.InputStream is)
This will parse an XML stream and create a DOM document.
|
static org.w3c.dom.Document |
parse(java.io.InputStream is,
boolean nsAware)
This will parse an XML stream and create a DOM document.
|
public static org.w3c.dom.Document parse(java.io.InputStream is) throws java.io.IOException
is
- The stream to get the XML from.java.io.IOException
- It there is an error creating the dom.public static org.w3c.dom.Document parse(java.io.InputStream is, boolean nsAware) throws java.io.IOException
is
- The stream to get the XML from.nsAware
- activates namespace awareness of the parserjava.io.IOException
- It there is an error creating the dom.public static java.lang.String getNodeValue(org.w3c.dom.Element node)
node
- The node to get the text value for.