summaryrefslogtreecommitdiffstats
path: root/test/xml/default-ns
diff options
context:
space:
mode:
Diffstat (limited to 'test/xml/default-ns')
-rw-r--r--test/xml/default-ns/check.txt17
-rw-r--r--test/xml/default-ns/input.xml12
2 files changed, 29 insertions, 0 deletions
diff --git a/test/xml/default-ns/check.txt b/test/xml/default-ns/check.txt
new file mode 100644
index 0000000..1497b8d
--- /dev/null
+++ b/test/xml/default-ns/check.txt
@@ -0,0 +1,17 @@
+ns0="http://some.xmlns.org/1.0"
+ns1="http://some.xmlns.org/2.0"
+/ns0:data
+/ns0:data/ns0:entries
+/ns0:data/ns0:entries@count="2"
+/ns0:data/ns0:entries/ns0:entry
+/ns0:data/ns0:entries/ns0:entry"Foo"
+/ns0:data/ns0:entries/ns0:entry
+/ns0:data/ns0:entries/ns0:entry"Baa"
+/ns0:data/ns1:entries
+/ns0:data/ns1:entries@count="3"
+/ns0:data/ns1:entries/ns1:entry
+/ns0:data/ns1:entries/ns1:entry@value="One"
+/ns0:data/ns1:entries/ns1:entry
+/ns0:data/ns1:entries/ns1:entry@value="Two"
+/ns0:data/ns1:entries/ns1:entry
+/ns0:data/ns1:entries/ns1:entry@value="Three"
diff --git a/test/xml/default-ns/input.xml b/test/xml/default-ns/input.xml
new file mode 100644
index 0000000..ec69874
--- /dev/null
+++ b/test/xml/default-ns/input.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<data xmlns="http://some.xmlns.org/1.0">
+ <entries count="2">
+ <entry>Foo</entry>
+ <entry>Baa</entry>
+ </entries>
+ <entries xmlns="http://some.xmlns.org/2.0" count="3">
+ <entry value="One"/>
+ <entry value="Two"/>
+ <entry value="Three"/>
+ </entries>
+</data>