org.softnetwork.xml.dom.xpath
Class XPathTools
java.lang.Object
org.softnetwork.xml.dom.xpath.XPathTools
- All Implemented Interfaces:
- XPath
public class XPathTools
- extends java.lang.Object
- implements XPath
- Author:
- stephane.manciot@ebiznext.com
Fields inherited from interface org.softnetwork.xml.dom.xpath.XPath |
EMPTY, EMPTY_NODES, XPATH_ALL, XPATH_ATTRIBUTE, XPATH_COND_BEGIN, XPATH_COND_END, XPATH_COUNT_FUNCTION, XPATH_CURRENT, XPATH_EQUALITY, XPATH_LAST_POS_FUNCTION, XPATH_NAME_FUNCTION, XPATH_NOT_COND, XPATH_POS_FUNCTION, XPATH_SEPARATOR, XPATH_TEXT_FUNCTION |
Method Summary |
static void |
copy(org.w3c.dom.Document source,
org.w3c.dom.Document out,
java.lang.String xpathFrom,
java.lang.String xpathTo)
|
static java.lang.String |
getCanonicalPath(org.w3c.dom.Node node)
|
static java.lang.String |
getCanonicalPath(java.lang.String xpath)
|
static int |
getElementPosition(org.w3c.dom.Element element)
|
static java.util.List |
getNamedElements(org.w3c.dom.Element element,
java.lang.String name)
|
static java.lang.String |
getParentXpath(java.lang.String xpath)
|
static java.lang.String |
getTagName(java.lang.String xpath)
|
static java.lang.String |
getXpath(org.w3c.dom.Node node)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copy
public static void copy(org.w3c.dom.Document source,
org.w3c.dom.Document out,
java.lang.String xpathFrom,
java.lang.String xpathTo)
throws XPathFormatException
- Throws:
XPathFormatException
getNamedElements
public static java.util.List getNamedElements(org.w3c.dom.Element element,
java.lang.String name)
getElementPosition
public static int getElementPosition(org.w3c.dom.Element element)
getXpath
public static final java.lang.String getXpath(org.w3c.dom.Node node)
getParentXpath
public static java.lang.String getParentXpath(java.lang.String xpath)
getCanonicalPath
public static java.lang.String getCanonicalPath(java.lang.String xpath)
getCanonicalPath
public static java.lang.String getCanonicalPath(org.w3c.dom.Node node)
getTagName
public static java.lang.String getTagName(java.lang.String xpath)
Copyright © 2005-2007 softnetwork.org. All Rights Reserved.