慈心積善融學(xué)習(xí),技術(shù)愿為有情學(xué)。善心速造多好事,前人栽樹后乘涼。我今于此寫經(jīng)驗(yàn),愿見文者得啟發(fā)。
xml file - 正確的文件
<?xml version="1.0" encoding="utf-8"?> <cultures> <taoists count="100" comment="good-t"> <book> <name>道德經(jīng)</name> <author>老子</author> </book> <book> <name>文始真經(jīng)</name> <author>關(guān)尹子</author> </book> </taoists> <buddhism count="321" comment="good-d"> <book> <name>金剛經(jīng)</name> <author>釋迦牟尼</author> </book> <book> <name>地藏菩薩本愿經(jīng)</name> <author>地藏</author> </book> </buddhism> </cultures>
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
使用瀏覽器進(jìn)行校驗(yàn)
xml file - 錯(cuò)誤的
<?xml version="1.0" encoding="utf-8"?> <cultures> <taoists count="100 comment="good-t" <book> <name>道德經(jīng)</name> <author>老子</author> </book> <book> <na>文始真經(jīng)</name> <author>關(guān)尹子</author> </book> </taoists> <buddhism count="321" comment="good-d"> <book> <name>金剛經(jīng)</name> <author>釋迦牟尼</author> </book> <book> <name>地藏菩薩本愿經(jīng)</name> <author>地藏</author> </book> </buddhism> </cultures>
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
使用瀏覽器進(jìn)行校驗(yàn)
感想
xml文件挺常用的,用程序自動(dòng)生成的xml文件最好,引號(hào)和尖括號(hào)等標(biāo)點(diǎn)符號(hào)肯定是全的。把事情交給擅長它的人去做。知人善任!
藍(lán)藍(lán)設(shè)計(jì)( www.1leven.cn )是一家專注而深入的界面設(shè)計(jì)公司,為期望卓越的國內(nèi)外企業(yè)提供卓越的UI界面設(shè)計(jì)、BS界面設(shè)計(jì) 、 cs界面設(shè)計(jì) 、 ipad界面設(shè)計(jì) 、 包裝設(shè)計(jì) 、 圖標(biāo)定制 、 用戶體驗(yàn) 、交互設(shè)計(jì)、 網(wǎng)站建設(shè) 、平面設(shè)計(jì)服務(wù)