|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object geo.google.utils.XmlUtils
public class XmlUtils
Constructor Summary | |
---|---|
XmlUtils()
|
Method Summary | |
---|---|
static XPath |
newXPath()
|
static Document |
parse(String xml)
Parse an xml string into document. |
static Node |
selectNode(Node context,
String xpath)
Selects a single node using the specified XPath. |
static String |
selectValue(Node context,
String xpath)
Selects a single value using the specified XPath. |
static InputSource |
stringToInputSource(String xml)
|
static void |
traverseTreeDepthFirst(Node node,
NodeProcessor processor)
Depth first traversal preProcess() function in NodeProcessor is called before visiting children postProcess() function in NodeProcessor is called before visiting children |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlUtils()
Method Detail |
---|
public static XPath newXPath()
public static Document parse(String xml) throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
SAXException
IOException
public static InputSource stringToInputSource(String xml)
public static String selectValue(Node context, String xpath) throws XPathExpressionException
XPathExpressionException
public static Node selectNode(Node context, String xpath) throws XPathExpressionException
XPathExpressionException
public static void traverseTreeDepthFirst(Node node, NodeProcessor processor)
node
- - the root of the tree for traversalprocessor
- - process function to called when visit the node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |