diff options
Diffstat (limited to 'test/xml-mapped/fuel-economy')
-rw-r--r-- | test/xml-mapped/fuel-economy/check-nomap.txt | 3 | ||||
-rw-r--r-- | test/xml-mapped/fuel-economy/check.txt | 4 | ||||
-rw-r--r-- | test/xml-mapped/fuel-economy/input.xml | 11 | ||||
-rw-r--r-- | test/xml-mapped/fuel-economy/map.xml | 9 |
4 files changed, 27 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<vehicles> + <vehicle> + <atvType/> + <barrels08>15</barrels08> + </vehicle> + <vehicle> + <atvType/> + <barrels08>29</barrels08> + </vehicle> +</vehicles> 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 @@ +<?xml version="1.0"?> +<map xmlns="http://gitorious.org/orcus/xml-map"> + <sheet name="data"/> + <range row="0" column="0" sheet="data"> + <field path="/vehicles/vehicle/atvType"/> + <field path="/vehicles/vehicle/barrels08"/> + <row-group path="/vehicles/vehicle"/> + </range> +</map> |