[gxml/xpath: 8/8] test/*.xml: add a couple more test files; test_invalid.xml should have been there a while ago, but I



commit 8c268a9fb0e03a7a4d60f772a9ccb66a8379d59d
Author: Richard Schwarting <aquarichy gmail com>
Date:   Tue Oct 15 11:52:07 2013 -0400

    test/*.xml: add a couple more test files; test_invalid.xml should have been there a while ago, but I 
suppose the tests would fail correctly either way  :)

 test/test_invalid.xml |    4 +++
 test/test_with_ns.xml |   63 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/test/test_invalid.xml b/test/test_invalid.xml
new file mode 100644
index 0000000..e159341
--- /dev/null
+++ b/test/test_invalid.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<Pie>
+  <slice>
+</Pie>
diff --git a/test/test_with_ns.xml b/test/test_with_ns.xml
new file mode 100644
index 0000000..b5ef837
--- /dev/null
+++ b/test/test_with_ns.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<svg
+  xmlns="http://www.w3.org/2000/svg";
+  xmlns:m="http://www.w3.org/1998/Math/MathML";>
+
+  <metadata>
+    <m:math>
+      <m:mrow>
+        <m:mi>x</m:mi>
+        <m:mo>=</m:mo>
+        <m:mfrac>
+          <m:mrow>
+            <m:mo form="prefix">&#x2212;<!-- − --></m:mo>
+            <m:mi>b</m:mi>
+            <m:mo>&#x00B1;<!-- &PlusMinus; --></m:mo>
+            <m:msqrt id="msqrt1">
+              <m:msup>
+                <m:mi>b</m:mi>
+                <m:mn>2</m:mn>
+              </m:msup>
+              <m:mo>&#x2212;<!-- − --></m:mo>
+              <m:mn>4</m:mn>
+              <m:mo>&#x2062;<!-- &InvisibleTimes; --></m:mo>
+              <m:mi>a</m:mi>
+              <m:mo>&#x2062;<!-- &InvisibleTimes; --></m:mo>
+              <m:mi>c</m:mi>
+            </m:msqrt>
+          </m:mrow>
+          <m:mrow>
+            <m:mn>2</m:mn>
+            <m:mo>&#x2062;<!-- &InvisibleTimes; --></m:mo>
+            <m:mi>a</m:mi>
+          </m:mrow>
+        </m:mfrac>
+      </m:mrow>
+    </m:math>
+
+    <rdf:RDF
+      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+      xmlns:ii="proto:item-info">
+
+      <rdf:Description rdf:about="SomeBook" id="description1">
+        <ii:artist>Mike Wazowsky</ii:artist>
+        <ii:country id="country1">USA</ii:country>
+        <ii:year>1984</ii:year>
+      </rdf:Description>
+    </rdf:RDF>
+
+    <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
+      <Description id="description2"/>
+    </RDF>
+  </metadata>
+
+  <g id="g1">
+    <path id="path1" d="m 100, 100 200, 100 200, 200 z"/>
+    <g id="g2">
+      <path id="path2" d="m 100, 100 200, 100 200, 200 z"/>
+      <g id="g3"/>
+    </g>
+  </g>
+
+</svg>
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]