| java.lang.Object com.vividsolutions.wms.util.XMLTools
XMLTools | public class XMLTools (Code) | | Provides some simple XML utilities for the WMS implementation to use.
author: Chris Hodgson chodgson@refractions.net |
Method Summary | |
public static void | printNode(Node n, String prefix) Recursively prints out the DOM structure underneath a Node. | public static Node | simpleXPath(Node parent, String xpath) A very simple XPath implementation.
Recursively drills down into the DOM tree, starting at the given parent
Node, following the provided XPath. |
printNode | public static void printNode(Node n, String prefix)(Code) | | Recursively prints out the DOM structure underneath a Node.
The prefix parameter is used in the recursive call to indent properly,
but it can also be used in the initial call to provide an initial prefix
or indentation.
Parameters: n - the Node to print out Parameters: prefix - the prefix to use |
simpleXPath | public static Node simpleXPath(Node parent, String xpath)(Code) | | A very simple XPath implementation.
Recursively drills down into the DOM tree, starting at the given parent
Node, following the provided XPath. The XPath string is a slash-delimited
list of element names to drill down into, the node with the last name in
the list is returned
Parameters: parent - the parent node to search into Parameters: xpath - the simplified XPath search string the Node found at the end of the search, or null if the searchfailed to find the specified node. |
|
|