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-mapped/attribute-basic/check-nomap.txt | 30 +++++ test/xml-mapped/attribute-basic/check.txt | 34 +++++ test/xml-mapped/attribute-basic/input.xml | 14 +++ test/xml-mapped/attribute-basic/map.xml | 16 +++ .../attribute-namespace-2/check-nomap.txt | 12 ++ test/xml-mapped/attribute-namespace-2/check.txt | 12 ++ test/xml-mapped/attribute-namespace-2/input.xml | 8 ++ test/xml-mapped/attribute-namespace-2/map.xml | 12 ++ .../xml-mapped/attribute-namespace/check-nomap.txt | 12 ++ test/xml-mapped/attribute-namespace/check.txt | 12 ++ test/xml-mapped/attribute-namespace/input.xml | 8 ++ test/xml-mapped/attribute-namespace/map.xml | 12 ++ .../attribute-range-self-close/check-nomap.txt | 24 ++++ .../attribute-range-self-close/check.txt | 24 ++++ .../attribute-range-self-close/input.xml | 8 ++ test/xml-mapped/attribute-range-self-close/map.xml | 11 ++ .../attribute-single-element-2/check.txt | 2 + .../attribute-single-element-2/input.xml | 2 + test/xml-mapped/attribute-single-element-2/map.xml | 6 + test/xml-mapped/attribute-single-element/check.txt | 2 + test/xml-mapped/attribute-single-element/input.xml | 2 + test/xml-mapped/attribute-single-element/map.xml | 6 + test/xml-mapped/content-basic/check-nomap.txt | 24 ++++ test/xml-mapped/content-basic/check.txt | 27 ++++ test/xml-mapped/content-basic/input.xml | 27 ++++ test/xml-mapped/content-basic/map.xml | 14 +++ .../xml-mapped/content-namespace-2/check-nomap.txt | 12 ++ test/xml-mapped/content-namespace-2/check.txt | 12 ++ test/xml-mapped/content-namespace-2/input.xml | 22 ++++ test/xml-mapped/content-namespace-2/map.xml | 13 ++ .../xml-mapped/content-namespace-3/check-nomap.txt | 12 ++ test/xml-mapped/content-namespace-3/check.txt | 13 ++ test/xml-mapped/content-namespace-3/input.xml | 26 ++++ test/xml-mapped/content-namespace-3/map.xml | 12 ++ test/xml-mapped/content-namespace/check-nomap.txt | 12 ++ test/xml-mapped/content-namespace/check.txt | 13 ++ test/xml-mapped/content-namespace/input.xml | 26 ++++ test/xml-mapped/content-namespace/map.xml | 12 ++ test/xml-mapped/content-one-column/check-nomap.txt | 4 + test/xml-mapped/content-one-column/input.xml | 6 + test/xml-mapped/custom-labels-2/check.txt | 12 ++ test/xml-mapped/custom-labels-2/input.xml | 8 ++ test/xml-mapped/custom-labels-2/map.xml | 12 ++ test/xml-mapped/custom-labels/check.txt | 27 ++++ test/xml-mapped/custom-labels/input.xml | 27 ++++ test/xml-mapped/custom-labels/map.xml | 14 +++ test/xml-mapped/encoding/euc-jp.xml | 12 ++ test/xml-mapped/encoding/gbk.xml | 139 +++++++++++++++++++++ test/xml-mapped/encoding/utf-8.xml | 27 ++++ test/xml-mapped/fuel-economy/check-nomap.txt | 3 + test/xml-mapped/fuel-economy/check.txt | 4 + test/xml-mapped/fuel-economy/input.xml | 11 ++ test/xml-mapped/fuel-economy/map.xml | 9 ++ .../invalids/map-defs/non-leaf-element-linked.xml | 9 ++ test/xml-mapped/invalids/map-defs/not-xml.xml | 1 + test/xml-mapped/nested-repeats-2/check-nomap.txt | 31 +++++ test/xml-mapped/nested-repeats-2/check.txt | 31 +++++ test/xml-mapped/nested-repeats-2/input.xml | 21 ++++ test/xml-mapped/nested-repeats-2/map.xml | 12 ++ test/xml-mapped/nested-repeats-3/check-nomap.txt | 44 +++++++ test/xml-mapped/nested-repeats-3/check.txt | 44 +++++++ test/xml-mapped/nested-repeats-3/input.xml | 32 +++++ test/xml-mapped/nested-repeats-3/map.xml | 13 ++ test/xml-mapped/nested-repeats-4/check-nomap.txt | 44 +++++++ test/xml-mapped/nested-repeats-4/check.txt | 44 +++++++ test/xml-mapped/nested-repeats-4/input.xml | 38 ++++++ test/xml-mapped/nested-repeats-4/map.xml | 13 ++ test/xml-mapped/nested-repeats/check-nomap.txt | 20 +++ test/xml-mapped/nested-repeats/check.txt | 20 +++ test/xml-mapped/nested-repeats/input.xml | 18 +++ test/xml-mapped/nested-repeats/map.xml | 10 ++ 71 files changed, 1306 insertions(+) create mode 100644 test/xml-mapped/attribute-basic/check-nomap.txt create mode 100644 test/xml-mapped/attribute-basic/check.txt create mode 100644 test/xml-mapped/attribute-basic/input.xml create mode 100644 test/xml-mapped/attribute-basic/map.xml create mode 100644 test/xml-mapped/attribute-namespace-2/check-nomap.txt create mode 100644 test/xml-mapped/attribute-namespace-2/check.txt create mode 100644 test/xml-mapped/attribute-namespace-2/input.xml create mode 100644 test/xml-mapped/attribute-namespace-2/map.xml create mode 100644 test/xml-mapped/attribute-namespace/check-nomap.txt create mode 100644 test/xml-mapped/attribute-namespace/check.txt create mode 100644 test/xml-mapped/attribute-namespace/input.xml create mode 100644 test/xml-mapped/attribute-namespace/map.xml create mode 100644 test/xml-mapped/attribute-range-self-close/check-nomap.txt create mode 100644 test/xml-mapped/attribute-range-self-close/check.txt create mode 100644 test/xml-mapped/attribute-range-self-close/input.xml create mode 100644 test/xml-mapped/attribute-range-self-close/map.xml create mode 100644 test/xml-mapped/attribute-single-element-2/check.txt create mode 100644 test/xml-mapped/attribute-single-element-2/input.xml create mode 100644 test/xml-mapped/attribute-single-element-2/map.xml create mode 100644 test/xml-mapped/attribute-single-element/check.txt create mode 100644 test/xml-mapped/attribute-single-element/input.xml create mode 100644 test/xml-mapped/attribute-single-element/map.xml create mode 100644 test/xml-mapped/content-basic/check-nomap.txt create mode 100644 test/xml-mapped/content-basic/check.txt create mode 100644 test/xml-mapped/content-basic/input.xml create mode 100644 test/xml-mapped/content-basic/map.xml create mode 100644 test/xml-mapped/content-namespace-2/check-nomap.txt create mode 100644 test/xml-mapped/content-namespace-2/check.txt create mode 100644 test/xml-mapped/content-namespace-2/input.xml create mode 100644 test/xml-mapped/content-namespace-2/map.xml create mode 100644 test/xml-mapped/content-namespace-3/check-nomap.txt create mode 100644 test/xml-mapped/content-namespace-3/check.txt create mode 100644 test/xml-mapped/content-namespace-3/input.xml create mode 100644 test/xml-mapped/content-namespace-3/map.xml create mode 100644 test/xml-mapped/content-namespace/check-nomap.txt create mode 100644 test/xml-mapped/content-namespace/check.txt create mode 100644 test/xml-mapped/content-namespace/input.xml create mode 100644 test/xml-mapped/content-namespace/map.xml create mode 100644 test/xml-mapped/content-one-column/check-nomap.txt create mode 100644 test/xml-mapped/content-one-column/input.xml create mode 100644 test/xml-mapped/custom-labels-2/check.txt create mode 100644 test/xml-mapped/custom-labels-2/input.xml create mode 100644 test/xml-mapped/custom-labels-2/map.xml create mode 100644 test/xml-mapped/custom-labels/check.txt create mode 100644 test/xml-mapped/custom-labels/input.xml create mode 100644 test/xml-mapped/custom-labels/map.xml create mode 100644 test/xml-mapped/encoding/euc-jp.xml create mode 100644 test/xml-mapped/encoding/gbk.xml create mode 100644 test/xml-mapped/encoding/utf-8.xml create mode 100644 test/xml-mapped/fuel-economy/check-nomap.txt create mode 100644 test/xml-mapped/fuel-economy/check.txt create mode 100644 test/xml-mapped/fuel-economy/input.xml create mode 100644 test/xml-mapped/fuel-economy/map.xml create mode 100644 test/xml-mapped/invalids/map-defs/non-leaf-element-linked.xml create mode 100644 test/xml-mapped/invalids/map-defs/not-xml.xml create mode 100644 test/xml-mapped/nested-repeats-2/check-nomap.txt create mode 100644 test/xml-mapped/nested-repeats-2/check.txt create mode 100644 test/xml-mapped/nested-repeats-2/input.xml create mode 100644 test/xml-mapped/nested-repeats-2/map.xml create mode 100644 test/xml-mapped/nested-repeats-3/check-nomap.txt create mode 100644 test/xml-mapped/nested-repeats-3/check.txt create mode 100644 test/xml-mapped/nested-repeats-3/input.xml create mode 100644 test/xml-mapped/nested-repeats-3/map.xml create mode 100644 test/xml-mapped/nested-repeats-4/check-nomap.txt create mode 100644 test/xml-mapped/nested-repeats-4/check.txt create mode 100644 test/xml-mapped/nested-repeats-4/input.xml create mode 100644 test/xml-mapped/nested-repeats-4/map.xml create mode 100644 test/xml-mapped/nested-repeats/check-nomap.txt create mode 100644 test/xml-mapped/nested-repeats/check.txt create mode 100644 test/xml-mapped/nested-repeats/input.xml create mode 100644 test/xml-mapped/nested-repeats/map.xml (limited to 'test/xml-mapped') diff --git a/test/xml-mapped/attribute-basic/check-nomap.txt b/test/xml-mapped/attribute-basic/check-nomap.txt new file mode 100644 index 0000000..d1bb6ef --- /dev/null +++ b/test/xml-mapped/attribute-basic/check-nomap.txt @@ -0,0 +1,30 @@ +range-0/0/0:string:"id" +range-0/0/1:string:"first-name" +range-0/0/2:string:"last-name" +range-0/0/3:string:"score" +range-0/0/4:string:"entry" +range-0/1/0:numeric:1 +range-0/1/1:string:"Bill" +range-0/1/2:string:"Clinton" +range-0/1/3:numeric:456 +range-0/1/4:string:"in" +range-0/2/0:numeric:2 +range-0/2/1:string:"David" +range-0/2/2:string:"Cameron" +range-0/2/3:numeric:323 +range-0/2/4:string:"out" +range-0/3/0:numeric:3 +range-0/3/1:string:"Barak" +range-0/3/2:string:"Obama" +range-0/3/3:numeric:234 +range-0/3/4:string:"unknown" +range-0/4/0:numeric:4 +range-0/4/1:string:"Yoshihiko" +range-0/4/2:string:"Noda" +range-0/4/3:numeric:192 +range-0/4/4:string:"in" +range-0/5/0:numeric:5 +range-0/5/1:string:"Angela" +range-0/5/2:string:"Merkel" +range-0/5/3:numeric:210 +range-0/5/4:string:"ask later" diff --git a/test/xml-mapped/attribute-basic/check.txt b/test/xml-mapped/attribute-basic/check.txt new file mode 100644 index 0000000..31fc805 --- /dev/null +++ b/test/xml-mapped/attribute-basic/check.txt @@ -0,0 +1,34 @@ +data/0/0:string:"TOP SECRET" +data/0/2:numeric:1.1 +data/1/0:string:"Simple Data File" +data/1/2:string:"2012-08-12" +data/3/0:string:"id" +data/3/1:string:"first-name" +data/3/2:string:"last-name" +data/3/3:string:"score" +data/3/4:string:"entry" +data/4/0:numeric:1 +data/4/1:string:"Bill" +data/4/2:string:"Clinton" +data/4/3:numeric:456 +data/4/4:string:"in" +data/5/0:numeric:2 +data/5/1:string:"David" +data/5/2:string:"Cameron" +data/5/3:numeric:323 +data/5/4:string:"out" +data/6/0:numeric:3 +data/6/1:string:"Barak" +data/6/2:string:"Obama" +data/6/3:numeric:234 +data/6/4:string:"unknown" +data/7/0:numeric:4 +data/7/1:string:"Yoshihiko" +data/7/2:string:"Noda" +data/7/3:numeric:192 +data/7/4:string:"in" +data/8/0:numeric:5 +data/8/1:string:"Angela" +data/8/2:string:"Merkel" +data/8/3:numeric:210 +data/8/4:string:"ask later" diff --git a/test/xml-mapped/attribute-basic/input.xml b/test/xml-mapped/attribute-basic/input.xml new file mode 100644 index 0000000..f19bc3f --- /dev/null +++ b/test/xml-mapped/attribute-basic/input.xml @@ -0,0 +1,14 @@ + + +
Simple Data File
+ + in + out + unknown + in + ask later + +
+ Not for distribution +
+
diff --git a/test/xml-mapped/attribute-basic/map.xml b/test/xml-mapped/attribute-basic/map.xml new file mode 100644 index 0000000..97172f2 --- /dev/null +++ b/test/xml-mapped/attribute-basic/map.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/test/xml-mapped/attribute-namespace-2/check-nomap.txt b/test/xml-mapped/attribute-namespace-2/check-nomap.txt new file mode 100644 index 0000000..63fe3cc --- /dev/null +++ b/test/xml-mapped/attribute-namespace-2/check-nomap.txt @@ -0,0 +1,12 @@ +range-0/0/0:string:"ns1:date-received" +range-0/0/1:string:"ns1:date-processed" +range-0/0/2:string:"ns1:received-by" +range-0/1/0:string:"2011-01-01" +range-0/1/1:string:"2011-01-03" +range-0/1/2:string:"JKB" +range-0/2/0:string:"2011-01-01" +range-0/2/1:string:"2011-01-04" +range-0/2/2:string:"CJ" +range-0/3/0:string:"2011-12-23" +range-0/3/1:string:"2012-01-01" +range-0/3/2:string:"KY" diff --git a/test/xml-mapped/attribute-namespace-2/check.txt b/test/xml-mapped/attribute-namespace-2/check.txt new file mode 100644 index 0000000..c8f23a3 --- /dev/null +++ b/test/xml-mapped/attribute-namespace-2/check.txt @@ -0,0 +1,12 @@ +data/1/1:string:"ns1:date-received" +data/1/2:string:"ns1:date-processed" +data/1/3:string:"ns1:received-by" +data/2/1:string:"2011-01-01" +data/2/2:string:"2011-01-03" +data/2/3:string:"JKB" +data/3/1:string:"2011-01-01" +data/3/2:string:"2011-01-04" +data/3/3:string:"CJ" +data/4/1:string:"2011-12-23" +data/4/2:string:"2012-01-01" +data/4/3:string:"KY" diff --git a/test/xml-mapped/attribute-namespace-2/input.xml b/test/xml-mapped/attribute-namespace-2/input.xml new file mode 100644 index 0000000..4a29806 --- /dev/null +++ b/test/xml-mapped/attribute-namespace-2/input.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/test/xml-mapped/attribute-namespace-2/map.xml b/test/xml-mapped/attribute-namespace-2/map.xml new file mode 100644 index 0000000..4a51c85 --- /dev/null +++ b/test/xml-mapped/attribute-namespace-2/map.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/test/xml-mapped/attribute-namespace/check-nomap.txt b/test/xml-mapped/attribute-namespace/check-nomap.txt new file mode 100644 index 0000000..63fe3cc --- /dev/null +++ b/test/xml-mapped/attribute-namespace/check-nomap.txt @@ -0,0 +1,12 @@ +range-0/0/0:string:"ns1:date-received" +range-0/0/1:string:"ns1:date-processed" +range-0/0/2:string:"ns1:received-by" +range-0/1/0:string:"2011-01-01" +range-0/1/1:string:"2011-01-03" +range-0/1/2:string:"JKB" +range-0/2/0:string:"2011-01-01" +range-0/2/1:string:"2011-01-04" +range-0/2/2:string:"CJ" +range-0/3/0:string:"2011-12-23" +range-0/3/1:string:"2012-01-01" +range-0/3/2:string:"KY" diff --git a/test/xml-mapped/attribute-namespace/check.txt b/test/xml-mapped/attribute-namespace/check.txt new file mode 100644 index 0000000..c8f23a3 --- /dev/null +++ b/test/xml-mapped/attribute-namespace/check.txt @@ -0,0 +1,12 @@ +data/1/1:string:"ns1:date-received" +data/1/2:string:"ns1:date-processed" +data/1/3:string:"ns1:received-by" +data/2/1:string:"2011-01-01" +data/2/2:string:"2011-01-03" +data/2/3:string:"JKB" +data/3/1:string:"2011-01-01" +data/3/2:string:"2011-01-04" +data/3/3:string:"CJ" +data/4/1:string:"2011-12-23" +data/4/2:string:"2012-01-01" +data/4/3:string:"KY" diff --git a/test/xml-mapped/attribute-namespace/input.xml b/test/xml-mapped/attribute-namespace/input.xml new file mode 100644 index 0000000..4a29806 --- /dev/null +++ b/test/xml-mapped/attribute-namespace/input.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/test/xml-mapped/attribute-namespace/map.xml b/test/xml-mapped/attribute-namespace/map.xml new file mode 100644 index 0000000..76e5b72 --- /dev/null +++ b/test/xml-mapped/attribute-namespace/map.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/test/xml-mapped/attribute-range-self-close/check-nomap.txt b/test/xml-mapped/attribute-range-self-close/check-nomap.txt new file mode 100644 index 0000000..4c5a8d5 --- /dev/null +++ b/test/xml-mapped/attribute-range-self-close/check-nomap.txt @@ -0,0 +1,24 @@ +range-0/0/0:string:"id" +range-0/0/1:string:"first-name" +range-0/0/2:string:"last-name" +range-0/0/3:string:"score" +range-0/1/0:numeric:1 +range-0/1/1:string:"Bill" +range-0/1/2:string:"Clinton" +range-0/1/3:numeric:456 +range-0/2/0:numeric:2 +range-0/2/1:string:"David" +range-0/2/2:string:"Cameron" +range-0/2/3:numeric:323 +range-0/3/0:numeric:3 +range-0/3/1:string:"Barak" +range-0/3/2:string:"Obama" +range-0/3/3:numeric:234 +range-0/4/0:numeric:4 +range-0/4/1:string:"Yoshihiko" +range-0/4/2:string:"Noda" +range-0/4/3:numeric:192 +range-0/5/0:numeric:5 +range-0/5/1:string:"Angela" +range-0/5/2:string:"Merkel" +range-0/5/3:numeric:210 diff --git a/test/xml-mapped/attribute-range-self-close/check.txt b/test/xml-mapped/attribute-range-self-close/check.txt new file mode 100644 index 0000000..5a049c0 --- /dev/null +++ b/test/xml-mapped/attribute-range-self-close/check.txt @@ -0,0 +1,24 @@ +data/3/0:string:"id" +data/3/1:string:"first-name" +data/3/2:string:"last-name" +data/3/3:string:"score" +data/4/0:numeric:1 +data/4/1:string:"Bill" +data/4/2:string:"Clinton" +data/4/3:numeric:456 +data/5/0:numeric:2 +data/5/1:string:"David" +data/5/2:string:"Cameron" +data/5/3:numeric:323 +data/6/0:numeric:3 +data/6/1:string:"Barak" +data/6/2:string:"Obama" +data/6/3:numeric:234 +data/7/0:numeric:4 +data/7/1:string:"Yoshihiko" +data/7/2:string:"Noda" +data/7/3:numeric:192 +data/8/0:numeric:5 +data/8/1:string:"Angela" +data/8/2:string:"Merkel" +data/8/3:numeric:210 diff --git a/test/xml-mapped/attribute-range-self-close/input.xml b/test/xml-mapped/attribute-range-self-close/input.xml new file mode 100644 index 0000000..6e9e31d --- /dev/null +++ b/test/xml-mapped/attribute-range-self-close/input.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/test/xml-mapped/attribute-range-self-close/map.xml b/test/xml-mapped/attribute-range-self-close/map.xml new file mode 100644 index 0000000..4e03133 --- /dev/null +++ b/test/xml-mapped/attribute-range-self-close/map.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/test/xml-mapped/attribute-single-element-2/check.txt b/test/xml-mapped/attribute-single-element-2/check.txt new file mode 100644 index 0000000..8a0ff58 --- /dev/null +++ b/test/xml-mapped/attribute-single-element-2/check.txt @@ -0,0 +1,2 @@ +data/2/3:numeric:1.1 +data/2/4:string:"2012-09-30" diff --git a/test/xml-mapped/attribute-single-element-2/input.xml b/test/xml-mapped/attribute-single-element-2/input.xml new file mode 100644 index 0000000..82dffee --- /dev/null +++ b/test/xml-mapped/attribute-single-element-2/input.xml @@ -0,0 +1,2 @@ + +This is not linked diff --git a/test/xml-mapped/attribute-single-element-2/map.xml b/test/xml-mapped/attribute-single-element-2/map.xml new file mode 100644 index 0000000..0ba42ff --- /dev/null +++ b/test/xml-mapped/attribute-single-element-2/map.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/test/xml-mapped/attribute-single-element/check.txt b/test/xml-mapped/attribute-single-element/check.txt new file mode 100644 index 0000000..8a0ff58 --- /dev/null +++ b/test/xml-mapped/attribute-single-element/check.txt @@ -0,0 +1,2 @@ +data/2/3:numeric:1.1 +data/2/4:string:"2012-09-30" diff --git a/test/xml-mapped/attribute-single-element/input.xml b/test/xml-mapped/attribute-single-element/input.xml new file mode 100644 index 0000000..dd24486 --- /dev/null +++ b/test/xml-mapped/attribute-single-element/input.xml @@ -0,0 +1,2 @@ + + diff --git a/test/xml-mapped/attribute-single-element/map.xml b/test/xml-mapped/attribute-single-element/map.xml new file mode 100644 index 0000000..0ba42ff --- /dev/null +++ b/test/xml-mapped/attribute-single-element/map.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/test/xml-mapped/content-basic/check-nomap.txt b/test/xml-mapped/content-basic/check-nomap.txt new file mode 100644 index 0000000..b0ec4d7 --- /dev/null +++ b/test/xml-mapped/content-basic/check-nomap.txt @@ -0,0 +1,24 @@ +range-0/0/0:string:"id" +range-0/0/1:string:"first" +range-0/0/2:string:"last" +range-0/0/3:string:"score" +range-0/1/0:numeric:1 +range-0/1/1:string:"Bill" +range-0/1/2:string:"Clinton" +range-0/1/3:numeric:456 +range-0/2/0:numeric:2 +range-0/2/1:string:"David" +range-0/2/2:string:"Cameron" +range-0/2/3:numeric:323 +range-0/3/0:numeric:3 +range-0/3/1:string:"Barak" +range-0/3/2:string:"Obama" +range-0/3/3:numeric:234 +range-0/4/0:numeric:4 +range-0/4/1:string:"Yoshihiko" +range-0/4/2:string:"Noda" +range-0/4/3:numeric:192 +range-0/5/0:numeric:5 +range-0/5/1:string:"Angela" +range-0/5/2:string:"Merkel" +range-0/5/3:numeric:210 diff --git a/test/xml-mapped/content-basic/check.txt b/test/xml-mapped/content-basic/check.txt new file mode 100644 index 0000000..ef90e22 --- /dev/null +++ b/test/xml-mapped/content-basic/check.txt @@ -0,0 +1,27 @@ +data/0/0:string:"TOP SECRET" +data/1/0:string:"Simple Data File" +data/1/2:string:"2012-08-12" +data/3/0:string:"id" +data/3/1:string:"first" +data/3/2:string:"last" +data/3/3:string:"score" +data/4/0:numeric:1 +data/4/1:string:"Bill" +data/4/2:string:"Clinton" +data/4/3:numeric:456 +data/5/0:numeric:2 +data/5/1:string:"David" +data/5/2:string:"Cameron" +data/5/3:numeric:323 +data/6/0:numeric:3 +data/6/1:string:"Barak" +data/6/2:string:"Obama" +data/6/3:numeric:234 +data/7/0:numeric:4 +data/7/1:string:"Yoshihiko" +data/7/2:string:"Noda" +data/7/3:numeric:192 +data/8/0:numeric:5 +data/8/1:string:"Angela" +data/8/2:string:"Merkel" +data/8/3:numeric:210 diff --git a/test/xml-mapped/content-basic/input.xml b/test/xml-mapped/content-basic/input.xml new file mode 100644 index 0000000..f6d4abc --- /dev/null +++ b/test/xml-mapped/content-basic/input.xml @@ -0,0 +1,27 @@ + + + +
+ Simple Data File +
+ + + 1BillClinton456 + + + 2DavidCameron323 + + + 3BarakObama234 + + + 4YoshihikoNoda192 + + + 5AngelaMerkel210 + + +
+ 2012-08-12 +
+
diff --git a/test/xml-mapped/content-basic/map.xml b/test/xml-mapped/content-basic/map.xml new file mode 100644 index 0000000..248daa7 --- /dev/null +++ b/test/xml-mapped/content-basic/map.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/test/xml-mapped/content-namespace-2/check-nomap.txt b/test/xml-mapped/content-namespace-2/check-nomap.txt new file mode 100644 index 0000000..d7c6de8 --- /dev/null +++ b/test/xml-mapped/content-namespace-2/check-nomap.txt @@ -0,0 +1,12 @@ +range-0/0/0:string:"ns2:date" +range-0/0/1:string:"ns2:category" +range-0/0/2:string:"ns2:amount" +range-0/1/0:string:"2011-01-02" +range-0/1/1:string:"Lunch" +range-0/1/2:numeric:6.32 +range-0/2/0:string:"2011-01-03" +range-0/2/1:string:"Lunch" +range-0/2/2:numeric:7.45 +range-0/3/0:string:"2011-01-04" +range-0/3/1:string:"Gas" +range-0/3/2:numeric:44.35 diff --git a/test/xml-mapped/content-namespace-2/check.txt b/test/xml-mapped/content-namespace-2/check.txt new file mode 100644 index 0000000..a4c7237 --- /dev/null +++ b/test/xml-mapped/content-namespace-2/check.txt @@ -0,0 +1,12 @@ +data/2/0:string:"ns2:date" +data/2/1:string:"ns2:category" +data/2/2:string:"ns2:amount" +data/3/0:string:"2011-01-02" +data/3/1:string:"Lunch" +data/3/2:numeric:6.32 +data/4/0:string:"2011-01-03" +data/4/1:string:"Lunch" +data/4/2:numeric:7.45 +data/5/0:string:"2011-01-04" +data/5/1:string:"Gas" +data/5/2:numeric:44.35 diff --git a/test/xml-mapped/content-namespace-2/input.xml b/test/xml-mapped/content-namespace-2/input.xml new file mode 100644 index 0000000..435dfce --- /dev/null +++ b/test/xml-mapped/content-namespace-2/input.xml @@ -0,0 +1,22 @@ + + + + + + 2011-01-02 + Lunch + 6.32 + + + 2011-01-03 + Lunch + 7.45 + + + 2011-01-04 + Gas + 44.35 + + + + diff --git a/test/xml-mapped/content-namespace-2/map.xml b/test/xml-mapped/content-namespace-2/map.xml new file mode 100644 index 0000000..172de50 --- /dev/null +++ b/test/xml-mapped/content-namespace-2/map.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/test/xml-mapped/content-namespace-3/check-nomap.txt b/test/xml-mapped/content-namespace-3/check-nomap.txt new file mode 100644 index 0000000..dce2781 --- /dev/null +++ b/test/xml-mapped/content-namespace-3/check-nomap.txt @@ -0,0 +1,12 @@ +range-0/0/0:string:"ns0:city" +range-0/0/1:string:"ns0:population" +range-0/0/2:string:"ns0:year" +range-0/1/0:string:"Tokyo" +range-0/1/1:numeric:13189000 +range-0/1/2:numeric:2011 +range-0/2/0:string:"New York City" +range-0/2/1:numeric:8244910 +range-0/2/2:numeric:2011 +range-0/3/0:string:"London" +range-0/3/1:numeric:8174100 +range-0/3/2:numeric:2011 diff --git a/test/xml-mapped/content-namespace-3/check.txt b/test/xml-mapped/content-namespace-3/check.txt new file mode 100644 index 0000000..98d2013 --- /dev/null +++ b/test/xml-mapped/content-namespace-3/check.txt @@ -0,0 +1,13 @@ +data/0/0:string:"Sample data" +data/2/0:string:"ns0:city" +data/2/1:string:"ns0:population" +data/2/2:string:"ns0:year" +data/3/0:string:"Tokyo" +data/3/1:numeric:13189000 +data/3/2:numeric:2011 +data/4/0:string:"New York City" +data/4/1:numeric:8244910 +data/4/2:numeric:2011 +data/5/0:string:"London" +data/5/1:numeric:8174100 +data/5/2:numeric:2011 diff --git a/test/xml-mapped/content-namespace-3/input.xml b/test/xml-mapped/content-namespace-3/input.xml new file mode 100644 index 0000000..6e3c8b8 --- /dev/null +++ b/test/xml-mapped/content-namespace-3/input.xml @@ -0,0 +1,26 @@ + + + Sample data + + + Tokyo + 13189000 + 2011 + + + New York City + 8244910 + 2011 + + + London + 8174100 + 2011 + + + Beijing + 20180000 + 2011 + + + diff --git a/test/xml-mapped/content-namespace-3/map.xml b/test/xml-mapped/content-namespace-3/map.xml new file mode 100644 index 0000000..419bf0c --- /dev/null +++ b/test/xml-mapped/content-namespace-3/map.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/test/xml-mapped/content-namespace/check-nomap.txt b/test/xml-mapped/content-namespace/check-nomap.txt new file mode 100644 index 0000000..dce2781 --- /dev/null +++ b/test/xml-mapped/content-namespace/check-nomap.txt @@ -0,0 +1,12 @@ +range-0/0/0:string:"ns0:city" +range-0/0/1:string:"ns0:population" +range-0/0/2:string:"ns0:year" +range-0/1/0:string:"Tokyo" +range-0/1/1:numeric:13189000 +range-0/1/2:numeric:2011 +range-0/2/0:string:"New York City" +range-0/2/1:numeric:8244910 +range-0/2/2:numeric:2011 +range-0/3/0:string:"London" +range-0/3/1:numeric:8174100 +range-0/3/2:numeric:2011 diff --git a/test/xml-mapped/content-namespace/check.txt b/test/xml-mapped/content-namespace/check.txt new file mode 100644 index 0000000..98d2013 --- /dev/null +++ b/test/xml-mapped/content-namespace/check.txt @@ -0,0 +1,13 @@ +data/0/0:string:"Sample data" +data/2/0:string:"ns0:city" +data/2/1:string:"ns0:population" +data/2/2:string:"ns0:year" +data/3/0:string:"Tokyo" +data/3/1:numeric:13189000 +data/3/2:numeric:2011 +data/4/0:string:"New York City" +data/4/1:numeric:8244910 +data/4/2:numeric:2011 +data/5/0:string:"London" +data/5/1:numeric:8174100 +data/5/2:numeric:2011 diff --git a/test/xml-mapped/content-namespace/input.xml b/test/xml-mapped/content-namespace/input.xml new file mode 100644 index 0000000..6e3c8b8 --- /dev/null +++ b/test/xml-mapped/content-namespace/input.xml @@ -0,0 +1,26 @@ + + + Sample data + + + Tokyo + 13189000 + 2011 + + + New York City + 8244910 + 2011 + + + London + 8174100 + 2011 + + + Beijing + 20180000 + 2011 + + + diff --git a/test/xml-mapped/content-namespace/map.xml b/test/xml-mapped/content-namespace/map.xml new file mode 100644 index 0000000..9cd4bed --- /dev/null +++ b/test/xml-mapped/content-namespace/map.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/test/xml-mapped/content-one-column/check-nomap.txt b/test/xml-mapped/content-one-column/check-nomap.txt new file mode 100644 index 0000000..8d43e1f --- /dev/null +++ b/test/xml-mapped/content-one-column/check-nomap.txt @@ -0,0 +1,4 @@ +range-0/0/0:string:"data" +range-0/1/0:string:"v1" +range-0/2/0:string:"v2" +range-0/3/0:string:"v3" diff --git a/test/xml-mapped/content-one-column/input.xml b/test/xml-mapped/content-one-column/input.xml new file mode 100644 index 0000000..e43b477 --- /dev/null +++ b/test/xml-mapped/content-one-column/input.xml @@ -0,0 +1,6 @@ + + + v1 + v2 + v3 + diff --git a/test/xml-mapped/custom-labels-2/check.txt b/test/xml-mapped/custom-labels-2/check.txt new file mode 100644 index 0000000..829dc2e --- /dev/null +++ b/test/xml-mapped/custom-labels-2/check.txt @@ -0,0 +1,12 @@ +data/1/1:string:"Date Received" +data/1/2:string:"Date Processed" +data/1/3:string:"Received by" +data/2/1:string:"2011-01-01" +data/2/2:string:"2011-01-03" +data/2/3:string:"JKB" +data/3/1:string:"2011-01-01" +data/3/2:string:"2011-01-04" +data/3/3:string:"CJ" +data/4/1:string:"2011-12-23" +data/4/2:string:"2012-01-01" +data/4/3:string:"KY" diff --git a/test/xml-mapped/custom-labels-2/input.xml b/test/xml-mapped/custom-labels-2/input.xml new file mode 100644 index 0000000..4a29806 --- /dev/null +++ b/test/xml-mapped/custom-labels-2/input.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/test/xml-mapped/custom-labels-2/map.xml b/test/xml-mapped/custom-labels-2/map.xml new file mode 100644 index 0000000..3dcdf47 --- /dev/null +++ b/test/xml-mapped/custom-labels-2/map.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/test/xml-mapped/custom-labels/check.txt b/test/xml-mapped/custom-labels/check.txt new file mode 100644 index 0000000..d1ebce5 --- /dev/null +++ b/test/xml-mapped/custom-labels/check.txt @@ -0,0 +1,27 @@ +data/0/0:string:"TOP SECRET" +data/1/0:string:"Simple Data File" +data/1/2:string:"2012-08-12" +data/3/0:string:"ID" +data/3/1:string:"First Name" +data/3/2:string:"Last Name" +data/3/3:string:"Test Score" +data/4/0:numeric:1 +data/4/1:string:"Bill" +data/4/2:string:"Clinton" +data/4/3:numeric:456 +data/5/0:numeric:2 +data/5/1:string:"David" +data/5/2:string:"Cameron" +data/5/3:numeric:323 +data/6/0:numeric:3 +data/6/1:string:"Barak" +data/6/2:string:"Obama" +data/6/3:numeric:234 +data/7/0:numeric:4 +data/7/1:string:"Yoshihiko" +data/7/2:string:"Noda" +data/7/3:numeric:192 +data/8/0:numeric:5 +data/8/1:string:"Angela" +data/8/2:string:"Merkel" +data/8/3:numeric:210 diff --git a/test/xml-mapped/custom-labels/input.xml b/test/xml-mapped/custom-labels/input.xml new file mode 100644 index 0000000..f6d4abc --- /dev/null +++ b/test/xml-mapped/custom-labels/input.xml @@ -0,0 +1,27 @@ + + + +
+ Simple Data File +
+ + + 1BillClinton456 + + + 2DavidCameron323 + + + 3BarakObama234 + + + 4YoshihikoNoda192 + + + 5AngelaMerkel210 + + +
+ 2012-08-12 +
+
diff --git a/test/xml-mapped/custom-labels/map.xml b/test/xml-mapped/custom-labels/map.xml new file mode 100644 index 0000000..0a7b64e --- /dev/null +++ b/test/xml-mapped/custom-labels/map.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/test/xml-mapped/encoding/euc-jp.xml b/test/xml-mapped/encoding/euc-jp.xml new file mode 100644 index 0000000..30f963b --- /dev/null +++ b/test/xml-mapped/encoding/euc-jp.xml @@ -0,0 +1,12 @@ + + + 泣塑胳1 + 泣塑胳2 + 泣塑胳3 + 泣塑胳4 + 泣塑胳5 + 泣塑胳6 + 泣塑胳7 + 泣塑胳8 + 泣塑胳9 + diff --git a/test/xml-mapped/encoding/gbk.xml b/test/xml-mapped/encoding/gbk.xml new file mode 100644 index 0000000..92d45e7 --- /dev/null +++ b/test/xml-mapped/encoding/gbk.xml @@ -0,0 +1,139 @@ + + + 2.0 + + 43 + + + + 专用发票 + 210***3130 + 01***724 + 202***02 + 上海***业有限公司 + 913101***95811677F + 建行上海华池路支行31001546***050004961 + 上海市曹杨路1***号A区10号 021-62***662 + 丹东******有限公司 + 9121***826612142928 + 中国农业银行***支行 50590***0003583 + 刘***村 8922857 + 94847.03 + 8536.23 + + 于*田 + 蒋*英 + 马*莹 + 39.0 + 0 + + + 1 + *肉****冻鸡排腿 + + kg + 1030107010100000000 + 00005 + 0 + + + 11.743119266055046 + 169.2 + 1986.94 + 0.09 + 178.82 + + + 2 + *肉****冻鸡排腿 + + kg + 1030107010100000000 + 00005 + 0 + + + 11.467889908256881 + 385.4 + 4419.72 + 0.09 + 397.78 + + + 3 + *肉****冻鸡排腿 + + kg + 1030107010100000000 + 00021 + 0 + + + 10.550458715596330 + 500 + 5275.23 + 0.09 + 474.77 + + + 4 + *肉****冻鸡排腿 + + kg + 1030107010100000000 + 00015 + 0 + + + 33.944954128440367 + 2450 + 83165.14 + 0.09 + 7484.86 + + + + + + 普通发票 + 0210***00404 + 47***608 + 20***802 + 上海***食品有限公司 + 9131011***1334373K + 工商银行上海市天山路支行 10012469***06906246 + 上海市普陀区交通路4***弄4号18楼 52***0300 + 丹东***有限公司 + 91210******12142928 + 中国农业银行***支行 50590***0003583 + 刘***村 8922857 + 87590.64 + 7883.16 + + 于*田 + 蒋*英 + 马*莹 + 39.0 + 0 + + + 1 + *肉***冻鸡大胸 + + kg + 1030107010100000000 + 00002 + 0 + + + 10.642201834862385 + 8230.5 + 87590.64 + 0.09 + 7883.16 + + + + + + \ No newline at end of file diff --git a/test/xml-mapped/encoding/utf-8.xml b/test/xml-mapped/encoding/utf-8.xml new file mode 100644 index 0000000..09d902a --- /dev/null +++ b/test/xml-mapped/encoding/utf-8.xml @@ -0,0 +1,27 @@ + + + +
+ Simple Data File +
+ + + 1BillClinton456 + + + 2DavidCameron323 + + + 3BarakObama234 + + + 4YoshihikoNoda192 + + + 5AngelaMerkel210 + + +
+ 2012-08-12 +
+
diff --git a/test/xml-mapped/fuel-economy/check-nomap.txt b/test/xml-mapped/fuel-economy/check-nomap.txt new file mode 100644 index 0000000..ae3e59a --- /dev/null +++ b/test/xml-mapped/fuel-economy/check-nomap.txt @@ -0,0 +1,3 @@ +range-0/0/0:string:"barrels08" +range-0/1/0:numeric:15 +range-0/2/0:numeric:29 diff --git a/test/xml-mapped/fuel-economy/check.txt b/test/xml-mapped/fuel-economy/check.txt new file mode 100644 index 0000000..76224a9 --- /dev/null +++ b/test/xml-mapped/fuel-economy/check.txt @@ -0,0 +1,4 @@ +data/0/0:string:"atvType" +data/0/1:string:"barrels08" +data/1/1:numeric:15 +data/2/1:numeric:29 diff --git a/test/xml-mapped/fuel-economy/input.xml b/test/xml-mapped/fuel-economy/input.xml new file mode 100644 index 0000000..dc043fe --- /dev/null +++ b/test/xml-mapped/fuel-economy/input.xml @@ -0,0 +1,11 @@ + + + + + 15 + + + + 29 + + diff --git a/test/xml-mapped/fuel-economy/map.xml b/test/xml-mapped/fuel-economy/map.xml new file mode 100644 index 0000000..fc20890 --- /dev/null +++ b/test/xml-mapped/fuel-economy/map.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/test/xml-mapped/invalids/map-defs/non-leaf-element-linked.xml b/test/xml-mapped/invalids/map-defs/non-leaf-element-linked.xml new file mode 100644 index 0000000..de94368 --- /dev/null +++ b/test/xml-mapped/invalids/map-defs/non-leaf-element-linked.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/test/xml-mapped/invalids/map-defs/not-xml.xml b/test/xml-mapped/invalids/map-defs/not-xml.xml new file mode 100644 index 0000000..dce8dbc --- /dev/null +++ b/test/xml-mapped/invalids/map-defs/not-xml.xml @@ -0,0 +1 @@ +asdfdasf diff --git a/test/xml-mapped/nested-repeats-2/check-nomap.txt b/test/xml-mapped/nested-repeats-2/check-nomap.txt new file mode 100644 index 0000000..029c983 --- /dev/null +++ b/test/xml-mapped/nested-repeats-2/check-nomap.txt @@ -0,0 +1,31 @@ +range-0/0/0:string:"name" +range-0/0/1:string:"id" +range-0/0/2:string:"ref" +range-0/1/0:string:"foo" +range-0/1/1:string:"A" +range-0/1/2:numeric:123456789 +range-0/2/0:string:"foo" +range-0/2/1:string:"A" +range-0/2/2:numeric:987654321 +range-0/3/0:string:"foo" +range-0/3/1:string:"B" +range-0/3/2:numeric:1 +range-0/4/0:string:"foo" +range-0/4/1:string:"B" +range-0/4/2:numeric:2 +range-0/5/0:string:"foo" +range-0/5/1:string:"B" +range-0/5/2:numeric:3 +range-0/6/0:string:"foo" +range-0/6/1:string:"C" +range-0/6/2:numeric:1.1 +range-0/7/0:string:"foo" +range-0/7/1:string:"C" +range-0/7/2:numeric:2.2 +range-0/8/0:string:"foo" +range-0/8/1:string:"C" +range-0/8/2:numeric:3.3 +range-0/9/0:string:"foo" +range-0/9/1:string:"C" +range-0/9/2:numeric:4.4 +range-0/10/0:string:"bah" diff --git a/test/xml-mapped/nested-repeats-2/check.txt b/test/xml-mapped/nested-repeats-2/check.txt new file mode 100644 index 0000000..adbe04a --- /dev/null +++ b/test/xml-mapped/nested-repeats-2/check.txt @@ -0,0 +1,31 @@ +data/0/0:string:"name" +data/0/1:string:"id" +data/0/2:string:"ref" +data/1/0:string:"foo" +data/1/1:string:"A" +data/1/2:numeric:123456789 +data/2/0:string:"foo" +data/2/1:string:"A" +data/2/2:numeric:987654321 +data/3/0:string:"foo" +data/3/1:string:"B" +data/3/2:numeric:1 +data/4/0:string:"foo" +data/4/1:string:"B" +data/4/2:numeric:2 +data/5/0:string:"foo" +data/5/1:string:"B" +data/5/2:numeric:3 +data/6/0:string:"foo" +data/6/1:string:"C" +data/6/2:numeric:1.1 +data/7/0:string:"foo" +data/7/1:string:"C" +data/7/2:numeric:2.2 +data/8/0:string:"foo" +data/8/1:string:"C" +data/8/2:numeric:3.3 +data/9/0:string:"foo" +data/9/1:string:"C" +data/9/2:numeric:4.4 +data/10/0:string:"bah" diff --git a/test/xml-mapped/nested-repeats-2/input.xml b/test/xml-mapped/nested-repeats-2/input.xml new file mode 100644 index 0000000..325dc82 --- /dev/null +++ b/test/xml-mapped/nested-repeats-2/input.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml-mapped/nested-repeats-2/map.xml b/test/xml-mapped/nested-repeats-2/map.xml new file mode 100644 index 0000000..3a03807 --- /dev/null +++ b/test/xml-mapped/nested-repeats-2/map.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/test/xml-mapped/nested-repeats-3/check-nomap.txt b/test/xml-mapped/nested-repeats-3/check-nomap.txt new file mode 100644 index 0000000..e7e0703 --- /dev/null +++ b/test/xml-mapped/nested-repeats-3/check-nomap.txt @@ -0,0 +1,44 @@ +range-0/0/0:string:"id" +range-0/0/1:string:"first_name" +range-0/0/2:string:"last_name" +range-0/0/3:string:"gender" +range-0/0/4:string:"score" +range-0/1/0:numeric:1 +range-0/1/1:string:"Mace" +range-0/1/2:string:"Stainton" +range-0/1/3:string:"Male" +range-0/1/4:numeric:39 +range-0/2/0:numeric:1 +range-0/2/1:string:"Mace" +range-0/2/2:string:"Stainton" +range-0/2/3:string:"Male" +range-0/2/4:numeric:42 +range-0/3/0:numeric:1 +range-0/3/1:string:"Mace" +range-0/3/2:string:"Stainton" +range-0/3/3:string:"Male" +range-0/3/4:numeric:58 +range-0/4/0:numeric:2 +range-0/4/1:string:"Kelley" +range-0/4/2:string:"Schelle" +range-0/4/3:string:"Female" +range-0/4/4:numeric:96 +range-0/5/0:numeric:2 +range-0/5/1:string:"Kelley" +range-0/5/2:string:"Schelle" +range-0/5/3:string:"Female" +range-0/5/4:numeric:158 +range-0/6/0:numeric:2 +range-0/6/1:string:"Kelley" +range-0/6/2:string:"Schelle" +range-0/6/3:string:"Female" +range-0/6/4:numeric:23 +range-0/7/0:numeric:2 +range-0/7/1:string:"Kelley" +range-0/7/2:string:"Schelle" +range-0/7/3:string:"Female" +range-0/7/4:numeric:44 +range-0/8/0:numeric:3 +range-0/8/1:string:"Ashbey" +range-0/8/2:string:"Fishly" +range-0/8/3:string:"Male" diff --git a/test/xml-mapped/nested-repeats-3/check.txt b/test/xml-mapped/nested-repeats-3/check.txt new file mode 100644 index 0000000..33bc184 --- /dev/null +++ b/test/xml-mapped/nested-repeats-3/check.txt @@ -0,0 +1,44 @@ +data/0/0:string:"id" +data/0/1:string:"first_name" +data/0/2:string:"last_name" +data/0/3:string:"gender" +data/0/4:string:"score" +data/1/0:numeric:1 +data/1/1:string:"Mace" +data/1/2:string:"Stainton" +data/1/3:string:"Male" +data/1/4:numeric:39 +data/2/0:numeric:1 +data/2/1:string:"Mace" +data/2/2:string:"Stainton" +data/2/3:string:"Male" +data/2/4:numeric:42 +data/3/0:numeric:1 +data/3/1:string:"Mace" +data/3/2:string:"Stainton" +data/3/3:string:"Male" +data/3/4:numeric:58 +data/4/0:numeric:2 +data/4/1:string:"Kelley" +data/4/2:string:"Schelle" +data/4/3:string:"Female" +data/4/4:numeric:96 +data/5/0:numeric:2 +data/5/1:string:"Kelley" +data/5/2:string:"Schelle" +data/5/3:string:"Female" +data/5/4:numeric:158 +data/6/0:numeric:2 +data/6/1:string:"Kelley" +data/6/2:string:"Schelle" +data/6/3:string:"Female" +data/6/4:numeric:23 +data/7/0:numeric:2 +data/7/1:string:"Kelley" +data/7/2:string:"Schelle" +data/7/3:string:"Female" +data/7/4:numeric:44 +data/8/0:numeric:3 +data/8/1:string:"Ashbey" +data/8/2:string:"Fishly" +data/8/3:string:"Male" diff --git a/test/xml-mapped/nested-repeats-3/input.xml b/test/xml-mapped/nested-repeats-3/input.xml new file mode 100644 index 0000000..883142d --- /dev/null +++ b/test/xml-mapped/nested-repeats-3/input.xml @@ -0,0 +1,32 @@ + + + + 1 + Mace + Stainton + Male + + 39 + 42 + 58 + + + + 2 + Kelley + Schelle + Female + + 96 + 158 + 23 + 44 + + + + 3 + Ashbey + Fishly + Male + + diff --git a/test/xml-mapped/nested-repeats-3/map.xml b/test/xml-mapped/nested-repeats-3/map.xml new file mode 100644 index 0000000..ec0fdef --- /dev/null +++ b/test/xml-mapped/nested-repeats-3/map.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/test/xml-mapped/nested-repeats-4/check-nomap.txt b/test/xml-mapped/nested-repeats-4/check-nomap.txt new file mode 100644 index 0000000..5b6d8ff --- /dev/null +++ b/test/xml-mapped/nested-repeats-4/check-nomap.txt @@ -0,0 +1,44 @@ +range-0/0/0:string:"id" +range-0/0/1:string:"first" +range-0/0/2:string:"last" +range-0/0/3:string:"gender" +range-0/0/4:string:"score" +range-0/1/0:numeric:1 +range-0/1/1:string:"Mace" +range-0/1/2:string:"Stainton" +range-0/1/3:string:"Male" +range-0/1/4:numeric:39 +range-0/2/0:numeric:1 +range-0/2/1:string:"Mace" +range-0/2/2:string:"Stainton" +range-0/2/3:string:"Male" +range-0/2/4:numeric:42 +range-0/3/0:numeric:1 +range-0/3/1:string:"Mace" +range-0/3/2:string:"Stainton" +range-0/3/3:string:"Male" +range-0/3/4:numeric:58 +range-0/4/0:numeric:2 +range-0/4/1:string:"Kelley" +range-0/4/2:string:"Schelle" +range-0/4/3:string:"Female" +range-0/4/4:numeric:96 +range-0/5/0:numeric:2 +range-0/5/1:string:"Kelley" +range-0/5/2:string:"Schelle" +range-0/5/3:string:"Female" +range-0/5/4:numeric:158 +range-0/6/0:numeric:2 +range-0/6/1:string:"Kelley" +range-0/6/2:string:"Schelle" +range-0/6/3:string:"Female" +range-0/6/4:numeric:23 +range-0/7/0:numeric:2 +range-0/7/1:string:"Kelley" +range-0/7/2:string:"Schelle" +range-0/7/3:string:"Female" +range-0/7/4:numeric:44 +range-0/8/0:numeric:3 +range-0/8/1:string:"Ashbey" +range-0/8/2:string:"Fishly" +range-0/8/3:string:"Male" diff --git a/test/xml-mapped/nested-repeats-4/check.txt b/test/xml-mapped/nested-repeats-4/check.txt new file mode 100644 index 0000000..a576382 --- /dev/null +++ b/test/xml-mapped/nested-repeats-4/check.txt @@ -0,0 +1,44 @@ +data/0/0:string:"id" +data/0/1:string:"first" +data/0/2:string:"last" +data/0/3:string:"gender" +data/0/4:string:"score" +data/1/0:numeric:1 +data/1/1:string:"Mace" +data/1/2:string:"Stainton" +data/1/3:string:"Male" +data/1/4:numeric:39 +data/2/0:numeric:1 +data/2/1:string:"Mace" +data/2/2:string:"Stainton" +data/2/3:string:"Male" +data/2/4:numeric:42 +data/3/0:numeric:1 +data/3/1:string:"Mace" +data/3/2:string:"Stainton" +data/3/3:string:"Male" +data/3/4:numeric:58 +data/4/0:numeric:2 +data/4/1:string:"Kelley" +data/4/2:string:"Schelle" +data/4/3:string:"Female" +data/4/4:numeric:96 +data/5/0:numeric:2 +data/5/1:string:"Kelley" +data/5/2:string:"Schelle" +data/5/3:string:"Female" +data/5/4:numeric:158 +data/6/0:numeric:2 +data/6/1:string:"Kelley" +data/6/2:string:"Schelle" +data/6/3:string:"Female" +data/6/4:numeric:23 +data/7/0:numeric:2 +data/7/1:string:"Kelley" +data/7/2:string:"Schelle" +data/7/3:string:"Female" +data/7/4:numeric:44 +data/8/0:numeric:3 +data/8/1:string:"Ashbey" +data/8/2:string:"Fishly" +data/8/3:string:"Male" diff --git a/test/xml-mapped/nested-repeats-4/input.xml b/test/xml-mapped/nested-repeats-4/input.xml new file mode 100644 index 0000000..4f50b59 --- /dev/null +++ b/test/xml-mapped/nested-repeats-4/input.xml @@ -0,0 +1,38 @@ + + + + 1 + + Mace + Stainton + + Male + + 39 + 42 + 58 + + + + 2 + + Kelley + Schelle + + Female + + 96 + 158 + 23 + 44 + + + + 3 + + Ashbey + Fishly + + Male + + diff --git a/test/xml-mapped/nested-repeats-4/map.xml b/test/xml-mapped/nested-repeats-4/map.xml new file mode 100644 index 0000000..284bffe --- /dev/null +++ b/test/xml-mapped/nested-repeats-4/map.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/test/xml-mapped/nested-repeats/check-nomap.txt b/test/xml-mapped/nested-repeats/check-nomap.txt new file mode 100644 index 0000000..2afd080 --- /dev/null +++ b/test/xml-mapped/nested-repeats/check-nomap.txt @@ -0,0 +1,20 @@ +range-0/0/0:string:"id" +range-0/0/1:string:"ref" +range-0/1/0:string:"A" +range-0/1/1:numeric:123456789 +range-0/2/0:string:"A" +range-0/2/1:numeric:987654321 +range-0/3/0:string:"B" +range-0/3/1:numeric:1 +range-0/4/0:string:"B" +range-0/4/1:numeric:2 +range-0/5/0:string:"B" +range-0/5/1:numeric:3 +range-0/6/0:string:"C" +range-0/6/1:numeric:1.1 +range-0/7/0:string:"C" +range-0/7/1:numeric:2.2 +range-0/8/0:string:"C" +range-0/8/1:numeric:3.3 +range-0/9/0:string:"C" +range-0/9/1:numeric:4.4 diff --git a/test/xml-mapped/nested-repeats/check.txt b/test/xml-mapped/nested-repeats/check.txt new file mode 100644 index 0000000..9672007 --- /dev/null +++ b/test/xml-mapped/nested-repeats/check.txt @@ -0,0 +1,20 @@ +data/0/0:string:"id" +data/0/1:string:"ref" +data/1/0:string:"A" +data/1/1:numeric:123456789 +data/2/0:string:"A" +data/2/1:numeric:987654321 +data/3/0:string:"B" +data/3/1:numeric:1 +data/4/0:string:"B" +data/4/1:numeric:2 +data/5/0:string:"B" +data/5/1:numeric:3 +data/6/0:string:"C" +data/6/1:numeric:1.1 +data/7/0:string:"C" +data/7/1:numeric:2.2 +data/8/0:string:"C" +data/8/1:numeric:3.3 +data/9/0:string:"C" +data/9/1:numeric:4.4 diff --git a/test/xml-mapped/nested-repeats/input.xml b/test/xml-mapped/nested-repeats/input.xml new file mode 100644 index 0000000..8828369 --- /dev/null +++ b/test/xml-mapped/nested-repeats/input.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/test/xml-mapped/nested-repeats/map.xml b/test/xml-mapped/nested-repeats/map.xml new file mode 100644 index 0000000..60b1743 --- /dev/null +++ b/test/xml-mapped/nested-repeats/map.xml @@ -0,0 +1,10 @@ + + + + + + + + + + -- cgit v1.2.3