public class XmlXpathUtilites extends Object
Constructor and Description |
---|
XmlXpathUtilites() |
Modifier and Type | Method and Description |
---|---|
static int |
countXPathNodes(NamespaceSupport ns,
String xpathString,
Document doc) |
static String |
getSingleXPathValue(NamespaceSupport ns,
String xpathString,
Document doc) |
static List<String> |
getXPathValues(NamespaceSupport ns,
String xpathString,
Document doc) |
static String |
removeIndexes(String xpath)
Remove indexes from an xpath string.
|
public static List<String> getXPathValues(NamespaceSupport ns, String xpathString, Document doc)
ns
- namespacesxpathString
- xpath to search ondoc
- xml to searchpublic static int countXPathNodes(NamespaceSupport ns, String xpathString, Document doc)
ns
- namespacesxpathString
- xpath to search ondoc
- xml to searchpublic static String getSingleXPathValue(NamespaceSupport ns, String xpathString, Document doc)
ns
- namespacesxpathString
- xpath to search ondoc
- xml to searchCopyright © 1996–2019 Geotools. All rights reserved.