summaryrefslogtreecommitdiffstats
path: root/test/xml/default-ns
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
commitc484829272cd13a738e35412498e12f2c9a194ac (patch)
treea1f5ec09629ee895bd3963fa8820b45f2f4c574b /test/xml/default-ns
parentInitial commit. (diff)
downloadliborcus-c484829272cd13a738e35412498e12f2c9a194ac.tar.xz
liborcus-c484829272cd13a738e35412498e12f2c9a194ac.zip
Adding upstream version 0.19.2.upstream/0.19.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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>