/*
* Copyright (c) 2002-2003 by OpenSymphony
* All rights reserved.
*/
package com.opensymphony.provider;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
/**
* Provider used for obtaining a single Node, or multiple Nodes from a DOM
* tree using an XPath expression.
*
* @author <a href="mailto:[email protected]">Joe Walnes</a>
* @version $Revision: 5 $
*
* @see com.opensymphony.util.XMLUtils
*/
public interface XPathProvider extends Provider {
//~ Methods ////////////////////////////////////////////////////////////////
Node getNode(Node base, String xpath) throws ProviderInvocationException;
NodeList getNodes(Node base, String xpath) throws ProviderInvocationException;
}
|