public class XMLUtils
extends java.lang.Object
| Constructor and Description |
|---|
XMLUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.Document |
convertStreamToXML(java.io.InputStream is) |
static org.w3c.dom.Node |
getNode(org.w3c.dom.Node xml,
java.lang.String NodeListXPath) |
static org.w3c.dom.NodeList |
getNodeList(org.w3c.dom.Node xml,
java.lang.String NodeListXPath) |
static java.util.Iterator<org.w3c.dom.Node> |
getNodeListIterator(org.w3c.dom.NodeList nodeList)
Creates an iterator for all direct child nodes within a given NodeList
that are element nodes:
node.getNodeType() == Node.ELEMENT_NODE
node instanceof Element
|
static java.util.Iterator<org.w3c.dom.Node> |
getNodeListIterator(org.w3c.dom.Node xml,
java.lang.String NodeListXPath) |
static java.lang.String |
getTextContent(org.w3c.dom.Node xml,
java.lang.String singleNodeXPath) |
public static java.lang.String getTextContent(org.w3c.dom.Node xml,
java.lang.String singleNodeXPath)
throws javax.xml.xpath.XPathExpressionException
xml - The starting context (a Node or a Document, for example).javax.xml.xpath.XPathExpressionExceptionpublic static org.w3c.dom.Node getNode(org.w3c.dom.Node xml,
java.lang.String NodeListXPath)
throws javax.xml.xpath.XPathExpressionException
xml - The starting context (a Node or a Document, for example).javax.xml.xpath.XPathExpressionExceptionpublic static org.w3c.dom.NodeList getNodeList(org.w3c.dom.Node xml,
java.lang.String NodeListXPath)
throws javax.xml.xpath.XPathExpressionException
xml - The starting context (a Node or a Document, for example).javax.xml.xpath.XPathExpressionExceptionpublic static java.util.Iterator<org.w3c.dom.Node> getNodeListIterator(org.w3c.dom.Node xml,
java.lang.String NodeListXPath)
throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionExceptionpublic static java.util.Iterator<org.w3c.dom.Node> getNodeListIterator(org.w3c.dom.NodeList nodeList)
public static org.w3c.dom.Document convertStreamToXML(java.io.InputStream is)
Copyright © 2018 DuraSpace. All Rights Reserved.