summaryrefslogtreecommitdiffstats
path: root/test/xml-structure/nested-repeat-1
diff options
context:
space:
mode:
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>