Package org.jaxen.dom

Examples of org.jaxen.dom.XPath


     * @return The first node found that matches the XPath, or null.
     */
    public Node selectSingleNode(Node contextNode, String str)
    {
        try {
            XPath path = new XPath(str);
            return (Node)path.selectSingleNode((Object)contextNode);
        } catch (Exception e){
            // ignore it
        }
        return null;
    }
View Full Code Here


       @return A NodeList, should never be null.
       */
    public NodeList selectNodeList(Node contextNode, String str)
    {
        try {
            XPath path = new XPath(str);
            List list = path.selectNodes((Object)contextNode);
            return new NodeListEx(list);
        } catch (Exception e){
            // ignore it
        }
        return new NodeListEx();
View Full Code Here

TOP

Related Classes of org.jaxen.dom.XPath

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.