Adding sypet to repo
[Benchmarks_CSolver.git] / sypet-non-incremental / benchmarks / xml / 29 / Solution.java
diff --git a/sypet-non-incremental/benchmarks/xml/29/Solution.java b/sypet-non-incremental/benchmarks/xml/29/Solution.java
new file mode 100644 (file)
index 0000000..61799e0
--- /dev/null
@@ -0,0 +1,23 @@
+import java.io.File;
+
+import javax.xml.namespace.QName;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathFactory;
+
+import org.w3c.dom.Document;
+
+public class Solution {
+
+    public static Object evaluateByXpath(File arg0, String arg1, QName arg2) throws Throwable {
+        XPathFactory v1 = XPathFactory.newInstance();
+        DocumentBuilderFactory v2 = DocumentBuilderFactory.newInstance();
+        XPath v3 = v1.newXPath();
+        DocumentBuilder v4 = v2.newDocumentBuilder();
+        Document v5 = v4.parse(arg0);
+        Object v6 = v3.evaluate(arg1, v5, arg2);
+        return v6;
+    }
+
+}