Package org.eclipse.tycho.test.util
Class XMLTool
java.lang.Object
org.eclipse.tycho.test.util.XMLTool
-
Method Summary
Modifier and TypeMethodDescriptionstatic NodegetFirstMatchingNode(Object startingPoint, String xpathExpression) getMatchingNodes(Object startingPoint, String xpathExpression) getMatchingNodesValue(Object startingPoint, String xpathExpression) static DocumentparseXMLDocument(File file) static DocumentparseXMLDocumentFromJar(File jarFile, String entryPath)
-
Method Details
-
parseXMLDocument
public static Document parseXMLDocument(File file) throws SAXException, IOException, ParserConfigurationException -
parseXMLDocumentFromJar
public static Document parseXMLDocumentFromJar(File jarFile, String entryPath) throws SAXException, IOException, ParserConfigurationException -
getFirstMatchingNode
public static Node getFirstMatchingNode(Object startingPoint, String xpathExpression) throws XPathExpressionException - Throws:
XPathExpressionException
-
getMatchingNodes
public static List<Node> getMatchingNodes(Object startingPoint, String xpathExpression) throws XPathExpressionException - Throws:
XPathExpressionException
-
getMatchingNodesValue
public static List<String> getMatchingNodesValue(Object startingPoint, String xpathExpression) throws XPathExpressionException - Throws:
XPathExpressionException
-