summaryrefslogtreecommitdiffstats
path: root/test/xml-structure/nested-repeat-1
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-structure/nested-repeat-1
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-structure/nested-repeat-1')
-rw-r--r--test/xml-structure/nested-repeat-1/check.txt12
-rw-r--r--test/xml-structure/nested-repeat-1/input.xml20
2 files changed, 32 insertions, 0 deletions
diff --git a/test/xml-structure/nested-repeat-1/check.txt b/test/xml-structure/nested-repeat-1/check.txt
new file mode 100644
index 0000000..8d6380e
--- /dev/null
+++ b/test/xml-structure/nested-repeat-1/check.txt
@@ -0,0 +1,12 @@
+/root
+/root/mode
+/root/mode/insert[*]
+/root/mode/insert[*]/command
+/root/mode/insert[*]/command/@name
+/root/mode/remove[*]
+/root/mode/remove[*]/command
+/root/mode/remove[*]/command/@name
+/root/mode/edit
+/root/mode/edit/command
+/root/mode/edit/command/@name
+
diff --git a/test/xml-structure/nested-repeat-1/input.xml b/test/xml-structure/nested-repeat-1/input.xml
new file mode 100644
index 0000000..9f190cc
--- /dev/null
+++ b/test/xml-structure/nested-repeat-1/input.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<root>
+ <mode>
+ <insert>
+ <command name="foo"/>
+ </insert>
+ <remove>
+ <command name="foo"/>
+ </remove>
+ <insert>
+ <command name="baa"/>
+ </insert>
+ <remove>
+ <command name="baa"/>
+ </remove>
+ <edit>
+ <command name="non-repeat"/>
+ </edit>
+ </mode>
+</root>