|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.neoworks.util.XPathQuery
This class wraps up DOM XPath queries so they're a bit easier to do.
The more observant amongst you may have noticed that this is a wrapper for a wrapper class. This is deliberate as XPathAPI is intended as a stopgap until the methods are rationalised and included in the Xalan API. This could mean an API change, meaning a second level of wrappers is required to ensure future compatibility with Xalan.
Method Summary | |
static org.w3c.dom.NodeList |
getNodes(org.w3c.dom.Document doc,
java.lang.String xpath)
Perform the given XPath query on the given document, returning a list of matching nodes |
static org.w3c.dom.NodeList |
getNodes(org.w3c.dom.Node node,
java.lang.String xpath)
Perform the given XPath query in the given document, returning a list of matching nodes. |
static org.w3c.dom.Node |
getSingleNode(org.w3c.dom.Document doc,
java.lang.String xpath)
Perform the given XPath query on the given document, returning a single matching node. |
static org.w3c.dom.Node |
getSingleNode(org.w3c.dom.Node node,
java.lang.String xpath)
Perform the given XPath query on the given DOM node, returning a single matching node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static org.w3c.dom.NodeList getNodes(org.w3c.dom.Node node, java.lang.String xpath)
node
- The node to query onxpath
- the XPath query to run
public static org.w3c.dom.NodeList getNodes(org.w3c.dom.Document doc, java.lang.String xpath)
doc
- The document to query onxpath
- the XPath query to run
public static org.w3c.dom.Node getSingleNode(org.w3c.dom.Node node, java.lang.String xpath)
node
- The node to query onxpath
- the XPath query to run
public static org.w3c.dom.Node getSingleNode(org.w3c.dom.Document doc, java.lang.String xpath)
doc
- The document to query onxpath
- the XPath query to run
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |