From c484829272cd13a738e35412498e12f2c9a194ac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 07:48:59 +0200 Subject: Adding upstream version 0.19.2. Signed-off-by: Daniel Baumann --- test/xml-structure/attribute-1/check.txt | 7 +++++++ test/xml-structure/attribute-1/input.xml | 5 +++++ test/xml-structure/basic-1/check.txt | 5 +++++ test/xml-structure/basic-1/input.xml | 13 +++++++++++++ test/xml-structure/basic-2/check.txt | 5 +++++ test/xml-structure/basic-2/input.xml | 7 +++++++ test/xml-structure/basic-3/check.txt | 9 +++++++++ test/xml-structure/basic-3/input.xml | 19 +++++++++++++++++++ test/xml-structure/namespace-default/check.txt | 5 +++++ test/xml-structure/namespace-default/input.xml | 6 ++++++ test/xml-structure/nested-repeat-1/check.txt | 12 ++++++++++++ test/xml-structure/nested-repeat-1/input.xml | 20 ++++++++++++++++++++ 12 files changed, 113 insertions(+) create mode 100644 test/xml-structure/attribute-1/check.txt create mode 100644 test/xml-structure/attribute-1/input.xml create mode 100644 test/xml-structure/basic-1/check.txt create mode 100644 test/xml-structure/basic-1/input.xml create mode 100644 test/xml-structure/basic-2/check.txt create mode 100644 test/xml-structure/basic-2/input.xml create mode 100644 test/xml-structure/basic-3/check.txt create mode 100644 test/xml-structure/basic-3/input.xml create mode 100644 test/xml-structure/namespace-default/check.txt create mode 100644 test/xml-structure/namespace-default/input.xml create mode 100644 test/xml-structure/nested-repeat-1/check.txt create mode 100644 test/xml-structure/nested-repeat-1/input.xml (limited to 'test/xml-structure') diff --git a/test/xml-structure/attribute-1/check.txt b/test/xml-structure/attribute-1/check.txt new file mode 100644 index 0000000..02bc1cb --- /dev/null +++ b/test/xml-structure/attribute-1/check.txt @@ -0,0 +1,7 @@ +/root +/root/@version +/root/@type +/root/entry[*] +/root/entry[*]/@attr1 +/root/entry[*]/@attr2 +/root/entry[*]/@attr3 diff --git a/test/xml-structure/attribute-1/input.xml b/test/xml-structure/attribute-1/input.xml new file mode 100644 index 0000000..fabfeda --- /dev/null +++ b/test/xml-structure/attribute-1/input.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/test/xml-structure/basic-1/check.txt b/test/xml-structure/basic-1/check.txt new file mode 100644 index 0000000..95e0737 --- /dev/null +++ b/test/xml-structure/basic-1/check.txt @@ -0,0 +1,5 @@ +/root +/root/entry[*] +/root/entry[*]/name +/root/entry[*]/id + diff --git a/test/xml-structure/basic-1/input.xml b/test/xml-structure/basic-1/input.xml new file mode 100644 index 0000000..e7c95a9 --- /dev/null +++ b/test/xml-structure/basic-1/input.xml @@ -0,0 +1,13 @@ + + + + + Foo + + + 12 + + + Bah + + diff --git a/test/xml-structure/basic-2/check.txt b/test/xml-structure/basic-2/check.txt new file mode 100644 index 0000000..2072ab1 --- /dev/null +++ b/test/xml-structure/basic-2/check.txt @@ -0,0 +1,5 @@ +/root +/root/name +/root/age +/root/nickname + diff --git a/test/xml-structure/basic-2/input.xml b/test/xml-structure/basic-2/input.xml new file mode 100644 index 0000000..1466be4 --- /dev/null +++ b/test/xml-structure/basic-2/input.xml @@ -0,0 +1,7 @@ + + + + Thomas Anderson + unknown + Neo + diff --git a/test/xml-structure/basic-3/check.txt b/test/xml-structure/basic-3/check.txt new file mode 100644 index 0000000..81a05a6 --- /dev/null +++ b/test/xml-structure/basic-3/check.txt @@ -0,0 +1,9 @@ +/data +/data/entries +/data/entries/entry[*] +/data/entries/entry[*]/id +/data/entries/entry[*]/name +/data/entries/entry[*]/name/first +/data/entries/entry[*]/name/last +/data/entries/entry[*]/nickname +/data/entries/entry[*]/gender diff --git a/test/xml-structure/basic-3/input.xml b/test/xml-structure/basic-3/input.xml new file mode 100644 index 0000000..4eee597 --- /dev/null +++ b/test/xml-structure/basic-3/input.xml @@ -0,0 +1,19 @@ + + + + + 0 + + Thomas + Anderson + + Neo + male + + + 1 + Trinity + female + + + diff --git a/test/xml-structure/namespace-default/check.txt b/test/xml-structure/namespace-default/check.txt new file mode 100644 index 0000000..811b06b --- /dev/null +++ b/test/xml-structure/namespace-default/check.txt @@ -0,0 +1,5 @@ +ns0="http://test.test.org/" +/ns0:root +/ns0:root/ns0:entry +/ns0:root/ns0:entry/ns0:name + diff --git a/test/xml-structure/namespace-default/input.xml b/test/xml-structure/namespace-default/input.xml new file mode 100644 index 0000000..012dd06 --- /dev/null +++ b/test/xml-structure/namespace-default/input.xml @@ -0,0 +1,6 @@ + + + + Foo + + 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 @@ + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3