summaryrefslogtreecommitdiffstats
path: root/test/xml/simple
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/simple
parentInitial commit. (diff)
downloadliborcus-upstream/0.19.2.tar.xz
liborcus-upstream/0.19.2.zip
Adding upstream version 0.19.2.upstream/0.19.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--test/xml/simple/check.txt12
-rw-r--r--test/xml/simple/input.xml13
2 files changed, 25 insertions, 0 deletions
diff --git a/test/xml/simple/check.txt b/test/xml/simple/check.txt
new file mode 100644
index 0000000..a90483e
--- /dev/null
+++ b/test/xml/simple/check.txt
@@ -0,0 +1,12 @@
+/root
+/root/child
+/root/child
+/root/child@attr1="value1"
+/root/child@attr2="value2"
+/root/child
+/root/child/baby
+/root/child/baby"some text"
+/root"before comment|"
+/root"|after comment"
+/root/child
+/root/child@attr3="value3"
diff --git a/test/xml/simple/input.xml b/test/xml/simple/input.xml
new file mode 100644
index 0000000..10ad8fd
--- /dev/null
+++ b/test/xml/simple/input.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- this is a comment -->
+<root>
+ <child/>
+ <child attr2="value2" attr1="value1"/>
+ <child>
+ <baby>some text</baby>
+ </child>
+ before comment|<!-- another comment -->|after comment
+ <child attr3="value3"/>
+ <!-- another comment - with a single hyphen. -->
+</root>
+