summaryrefslogtreecommitdiffstats
path: root/test/xml-mapped/encoding
diff options
context:
space:
mode:
Diffstat (limited to 'test/xml-mapped/encoding')
-rw-r--r--test/xml-mapped/encoding/euc-jp.xml12
-rw-r--r--test/xml-mapped/encoding/gbk.xml139
-rw-r--r--test/xml-mapped/encoding/utf-8.xml27
3 files changed, 178 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="EUC-JP"?>
+<root>
+ <entry>泣塑胳1</entry>
+ <entry>泣塑胳2</entry>
+ <entry>泣塑胳3</entry>
+ <entry>泣塑胳4</entry>
+ <entry>泣塑胳5</entry>
+ <entry>泣塑胳6</entry>
+ <entry>泣塑胳7</entry>
+ <entry>泣塑胳8</entry>
+ <entry>泣塑胳9</entry>
+</root>
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 @@
+<?xml version="1.0" encoding="GBK"?>
+<Kp>
+ <Version>2.0</Version>
+ <Fpxx>
+ <Zsl>43</Zsl>
+ <Fpsj>
+ <Fp>
+ <Djh/>
+ <Fpzl>专用发票</Fpzl>
+ <Lbdm>210***3130</Lbdm>
+ <Fphm>01***724</Fphm>
+ <Kprq>202***02</Kprq>
+ <Gfmc>上海***业有限公司</Gfmc>
+ <Gfsh>913101***95811677F</Gfsh>
+ <Gfyhzh>建行上海华池路支行31001546***050004961</Gfyhzh>
+ <Gfdzdh>上海市曹杨路1***号A区10号 021-62***662</Gfdzdh>
+ <Xfmc>丹东******有限公司</Xfmc>
+ <Xfsh>9121***826612142928</Xfsh>
+ <Xfyhzh>中国农业银行***支行 50590***0003583</Xfyhzh>
+ <Xfdzdh>刘***村 8922857</Xfdzdh>
+ <Hjje>94847.03</Hjje>
+ <Hjse>8536.23</Hjse>
+ <Bz/>
+ <Kpr>于*田</Kpr>
+ <Fhr>蒋*英</Fhr>
+ <Skr>马*莹</Skr>
+ <Spbmbbh>39.0</Spbmbbh>
+ <Hsbz>0</Hsbz>
+ <Spxx>
+ <Sph>
+ <Xh>1</Xh>
+ <Spmc>*肉****冻鸡排腿</Spmc>
+ <Ggxh/>
+ <Jldw>kg</Jldw>
+ <Spbm>1030107010100000000</Spbm>
+ <Qyspbm>00005</Qyspbm>
+ <Syyhzcbz>0</Syyhzcbz>
+ <Lslbz/>
+ <Yhzcsm/>
+ <Dj>11.743119266055046</Dj>
+ <Sl>169.2</Sl>
+ <Je>1986.94</Je>
+ <Slv>0.09</Slv>
+ <Se>178.82</Se>
+ </Sph>
+ <Sph>
+ <Xh>2</Xh>
+ <Spmc>*肉****冻鸡排腿</Spmc>
+ <Ggxh/>
+ <Jldw>kg</Jldw>
+ <Spbm>1030107010100000000</Spbm>
+ <Qyspbm>00005</Qyspbm>
+ <Syyhzcbz>0</Syyhzcbz>
+ <Lslbz/>
+ <Yhzcsm/>
+ <Dj>11.467889908256881</Dj>
+ <Sl>385.4</Sl>
+ <Je>4419.72</Je>
+ <Slv>0.09</Slv>
+ <Se>397.78</Se>
+ </Sph>
+ <Sph>
+ <Xh>3</Xh>
+ <Spmc>*肉****冻鸡排腿</Spmc>
+ <Ggxh/>
+ <Jldw>kg</Jldw>
+ <Spbm>1030107010100000000</Spbm>
+ <Qyspbm>00021</Qyspbm>
+ <Syyhzcbz>0</Syyhzcbz>
+ <Lslbz/>
+ <Yhzcsm/>
+ <Dj>10.550458715596330</Dj>
+ <Sl>500</Sl>
+ <Je>5275.23</Je>
+ <Slv>0.09</Slv>
+ <Se>474.77</Se>
+ </Sph>
+ <Sph>
+ <Xh>4</Xh>
+ <Spmc>*肉****冻鸡排腿</Spmc>
+ <Ggxh/>
+ <Jldw>kg</Jldw>
+ <Spbm>1030107010100000000</Spbm>
+ <Qyspbm>00015</Qyspbm>
+ <Syyhzcbz>0</Syyhzcbz>
+ <Lslbz/>
+ <Yhzcsm/>
+ <Dj>33.944954128440367</Dj>
+ <Sl>2450</Sl>
+ <Je>83165.14</Je>
+ <Slv>0.09</Slv>
+ <Se>7484.86</Se>
+ </Sph>
+ </Spxx>
+ </Fp>
+ <Fp>
+ <Djh/>
+ <Fpzl>普通发票</Fpzl>
+ <Lbdm>0210***00404</Lbdm>
+ <Fphm>47***608</Fphm>
+ <Kprq>20***802</Kprq>
+ <Gfmc>上海***食品有限公司</Gfmc>
+ <Gfsh>9131011***1334373K</Gfsh>
+ <Gfyhzh>工商银行上海市天山路支行 10012469***06906246</Gfyhzh>
+ <Gfdzdh>上海市普陀区交通路4***弄4号18楼 52***0300</Gfdzdh>
+ <Xfmc>丹东***有限公司</Xfmc>
+ <Xfsh>91210******12142928</Xfsh>
+ <Xfyhzh>中国农业银行***支行 50590***0003583</Xfyhzh>
+ <Xfdzdh>刘***村 8922857</Xfdzdh>
+ <Hjje>87590.64</Hjje>
+ <Hjse>7883.16</Hjse>
+ <Bz/>
+ <Kpr>于*田</Kpr>
+ <Fhr>蒋*英</Fhr>
+ <Skr>马*莹</Skr>
+ <Spbmbbh>39.0</Spbmbbh>
+ <Hsbz>0</Hsbz>
+ <Spxx>
+ <Sph>
+ <Xh>1</Xh>
+ <Spmc>*肉***冻鸡大胸</Spmc>
+ <Ggxh/>
+ <Jldw>kg</Jldw>
+ <Spbm>1030107010100000000</Spbm>
+ <Qyspbm>00002</Qyspbm>
+ <Syyhzcbz>0</Syyhzcbz>
+ <Lslbz/>
+ <Yhzcsm/>
+ <Dj>10.642201834862385</Dj>
+ <Sl>8230.5</Sl>
+ <Je>87590.64</Je>
+ <Slv>0.09</Slv>
+ <Se>7883.16</Se>
+ </Sph>
+ </Spxx>
+ </Fp>
+ </Fpsj>
+ </Fpxx>
+</Kp> \ 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 @@
+<?xml version="1.0" encoding="utf-8"?>
+<data>
+ <label>TOP SECRET</label>
+ <header>
+ <title>Simple Data File</title>
+ </header>
+ <entries>
+ <entry>
+ <id>1</id><name><first>Bill</first><last>Clinton</last></name><score>456</score>
+ </entry>
+ <entry>
+ <id>2</id><name><first>David</first><last>Cameron</last></name><score>323</score>
+ </entry>
+ <entry>
+ <id>3</id><name><first>Barak</first><last>Obama</last></name><score>234</score>
+ </entry>
+ <entry>
+ <id>4</id><name><first>Yoshihiko</first><last>Noda</last></name><score>192</score>
+ </entry>
+ <entry>
+ <id>5</id><name><first>Angela</first><last>Merkel</last></name><score>210</score>
+ </entry>
+ </entries>
+ <footer>
+ <date>2012-08-12</date>
+ </footer>
+</data>