Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.merlotxml.util.xml
Class XPathUtil  view XPathUtil download XPathUtil.java

java.lang.Object
  extended byorg.merlotxml.util.xml.XPathUtil

public class XPathUtil
extends java.lang.Object

General XPath utilities

Version:
$Id: XPathUtil.java,v 1.1.1.1 2001/07/02 15:41:28 flament Exp $

Constructor Summary
XPathUtil()
           
 
Method Summary
static java.lang.String getValue(org.w3c.dom.Node contextNode, java.lang.String str)
           
static java.util.List getValueList(org.w3c.dom.Node contextNode, java.lang.String xpath)
           
static java.lang.String parseVariable(org.w3c.dom.Node contextNode, java.lang.String xPathString)
           
static org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, java.lang.String str)
          Select a list of nodes using an XPath expression
static org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, java.lang.String str)
          Select a single node using an XPath expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathUtil

public XPathUtil()
Method Detail

selectNodes

public static org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode,
                                               java.lang.String str)
                                        throws org.xml.sax.SAXException
Select a list of nodes using an XPath expression


selectSingleNode

public static org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode,
                                                java.lang.String str)
                                         throws org.xml.sax.SAXException
Select a single node using an XPath expression


getValue

public static java.lang.String getValue(org.w3c.dom.Node contextNode,
                                        java.lang.String str)
                                 throws org.xml.sax.SAXException

getValueList

public static java.util.List getValueList(org.w3c.dom.Node contextNode,
                                          java.lang.String xpath)
                                   throws org.xml.sax.SAXException

parseVariable

public static java.lang.String parseVariable(org.w3c.dom.Node contextNode,
                                             java.lang.String xPathString)