xml ÖйØÓÚencodingÓëÎı¾Îļþ±àÂëµÄÒÉ»ó
<?xml version="1.0" encoding="UTF-8" ?>
xmlÖдæµÄÊÇÎı¾
ÄÇ"encoding="UTF-8"ÊÇ˵´ËÎļþÓõÄ×Ö·û¼¯ÊÇUTF-8"
±íʾµÄÊÇÕâ¸öÎı¾ÓõÄ×Ö·û¼¯ÖÐUTF8
ÄÇÈç¹ûÕâ¸öÎı¾ÎļþµÄ±àÂë¸ñʽÊÇGB2312(±È·½ËµÊÇÊÇÓÃwinϵļÇʱ¾Ä¬ÈÏ·½Ê½±£´æµÄ),ÄÇÕâЩ±àÂ뷽ʽ¶¼Ó°Ïìʲô?
±È·½Ëµ,ÓÃJAVA¶Áʱ,ÊÇÓÃGB2312¶ÁÈ뻹ÊÇUTF8¶ÁÈë;Èç¹ûÓ¦¸ÃÓÃGB2312¶ÁÈë,ÄÇÄǸö"encoding="UTF-8" "ÓÖÓÐʲôÓÃ?
¾ÍÊÇ˵XMLÖеÄencoding=ÊôÐÔÓëʵ¼Ê±àÂ뷽ʽ²»Ò»ÖµÄʱºò,ÕâÖÖÇé¿öÊÇ·ñºÏ·¨?Èç¹ûºÏ·¨,encodingÊôÐÔÓëʵ¼Ê±àÂ뷽ʽ¸÷Æðʲô×÷ÓÃ?¸Ð¾õencodingÊôÐÔûʲôÓÃÁË...
{{
Ïà¹ØÎÊ´ð£º
vbÖÐÔõôͨ¹ýxmlÀ´½âÎöÊý¾Ý¿âÖеÄ×Ö¶ÎÖµ¡£
û°ì·¨ÓÃXML½âÎöÊý¾Ý¿âµÄ×Ö¶ÎÖµ£¬³ý·ÇÊý¾Ý¿âÖб£´æµÄÊÇXML¸ñʽµÄ×Ö·û´®Îĵµ¡£
XMLÓÃÀ´Õ¹Ê¾²ã´ÎµÄÊý¾Ý¡£
Êý¾Ý¿âÒ»°ãÊǶþάÊý¾Ý¡£
Êý¾Ý¿âÖб£´æµÄÊÇXML×Ö·û´®¸ñʽ£ ......
ÇëÎʸ÷λ´óʦ£¬ÎÒÏÖÔÚÐèÒª½«XMLµÄÊý¾ÝʵʱµÄ´æÈëµ½Êý¾Ý¿âÖУ¬ÎÒÊÇÓÃasp±àµÄ³ÌÐò£¬´óÁ¿Ãǰïæ·ÖÎö һϣ¡£¡£¡
ÏÂÃæÊÇÎÒµÄXMLÎļþ´úÂë
XML code:
<?xml version="1.0" encoding="utf-8"? ......
txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔÊý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......
ÇëÎÊ.netÈçºÎ¶ÁÈ¡xmlµÄÖµ дµ½Êý¾Ý¿â Ï£Íû¸ø³öÍêÕûµÄ´úÂë лл
<?xml version="1.0" encoding="utf-8" ?>
- <channel>
- <item>
......