org.apache.avalon.excalibur.xml.xpath
Interface XPathProcessor
- All Superinterfaces:
- org.apache.avalon.framework.component.Component
- All Known Implementing Classes:
- JaxenProcessorImpl, XPathProcessorImpl
- public interface XPathProcessor
- extends org.apache.avalon.framework.component.Component
This is the interface of the XPath processor.
- Version:
- CVS $Revision: 1.5 $ $Date: 2001/12/11 09:53:32 $ $Author: jefft $
- Author:
- Davanum Srinivas
Field Summary |
static java.lang.String |
ROLE
The role implemented by an XSLTProcessor . |
Method Summary |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str)
Use an XPath string to select a nodelist. |
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String str)
Use an XPath string to select a single node. |
ROLE
public static final java.lang.String ROLE
- The role implemented by an
XSLTProcessor
.
selectSingleNode
public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String str)
- Use an XPath string to select a single node. XPath namespace
prefixes are resolved from the context node, which may not
be what you want (see the next method).
- Parameters:
contextNode
- The node to start searching from.str
- A valid XPath string.- Returns:
- The first node found that matches the XPath, or null.
selectNodeList
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str)
- Use an XPath string to select a nodelist.
XPath namespace prefixes are resolved from the contextNode.
- Parameters:
contextNode
- The node to start searching from.str
- A valid XPath string.- Returns:
- A List, should never be null.
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.