public class XMLTools
extends java.lang.Object
Constructor and Description |
---|
XMLTools() |
Modifier and Type | Method and Description |
---|---|
static void |
printNode(org.w3c.dom.Node n,
java.lang.String prefix)
Recursively prints out the DOM structure underneath a Node.
|
static org.w3c.dom.Node |
simpleXPath(org.w3c.dom.Node parent,
java.lang.String xpath)
A very simple XPath implementation.
|
public static void printNode(org.w3c.dom.Node n, java.lang.String prefix)
n
- the Node to print outprefix
- the prefix to usepublic static org.w3c.dom.Node simpleXPath(org.w3c.dom.Node parent, java.lang.String xpath)
parent
- the parent node to search intoxpath
- the simplified XPath search string