Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÏÖÔÚһЩÊý¾ÝÔõôдÈëXMLÀïÃæÑ½¸ßÊÖ°ïÏÂæºÜ¼±¡£¡£¡£

ÎÒÒª°ÑÕâЩͼƬÐÅϢдÈëXML ÀïÃæµ«ÊÇÎÒ²»»á²Ù×÷XML Ï£Íû¸ßÊÖÄܹ»°ïæ½â¾öÏ£¬ ¸Ð¼¤²»¾¡¡£¡£
http://img10.360buyimg.com/S5/1875/2cf71570-145a-4007-afc0-bedd6756f754.jpg
http://img10.360buyimg.com/S5/3930/0f31ae6c-fccb-47ba-87c1-de28e9de8800.jpg
http://img10.360buyimg.com/S5/1144/fdc48ad3-3a02-4fb4-93b4-44f19b41812f.jpg
http://img10.360buyimg.com/S5/2764/7bb2afbe-76dd-4f05-9483-194da93dd687.jpg
http://img10.360buyimg.com/S5/4977/f9d7ef13-0c17-462c-8faf-332f40c0b611.jpg
´òËãÐÂÔöxmlÎļþдÈ룬»¹ÊǶÔÒÑÓеĽøÐÐÐ޸ģ¬ÓÐɶҪÇóÓë¸ñʽ¡£¡£¡£

´òËãÐÂÔö£¬ ¶øÇÒÕâ¸öXML Ò²Òª¶¯Ì¬£¬ ÒòΪÉÏÃæµÄÄǼ¸¸öͼƬµØÖ·ÊDz»È·¶¨µÄ£¬ ÎÒÊǶ¯Ì¬»ñÈ¡µÄ£¬
ÓпÉÄÜÊÇ6Ìõ£¬Ò²ÓпÉÄÜÊÇ7Ìõ8ÌõʲôµÄ£¬
ÎÒҪʵÏֵŦÄܾÍÊǰÑÕâЩÊý¾ÝдÈëµ½XMLÀïÃæ£¬µ½Ê±ºòÒªÊý¾ÝµÄʱºòÔÙÈ¥¶ÁXML¡£¡£
Ï£Íû¸ßÊÖÄܰïÏÂæ¡£¡£

C# code:

xmldocument xDoc=new xmldocument();
xmlElement xElem=new xmlElement("ImageList");
xDoc.CreateElement(xElem);
xmlNode xNode=null;
xNode.attributes.Append("ImgPath");
xNode.ImgPath=sPath;
xElem.AppendChild(xNode);



ÎÒ¸Õ×ö³öÀ´ÁË¿ÉÒÔÌí¼Ó½øÈ¥£¬µ«ÊÇ ÕâÖÖЧ¹û¡£
ÎÒÒª°ÑÄÇЩ ͼƬµØÖ··ÅÔÚ <pic> </pic>±êÇ©¶ÔÀïÃæ£¬
¿ÉÒÔ¶¯Ì¬Ìí¼Ó¸¸±êÇ©¼°×Ó±êÇ©Âð£¿
  <pic>
  </pic>
  <href>http://img10.360buyimg.com/S5/1875/2cf71570-145a-4007-afc0


Ïà¹ØÎÊ´ð£º

ÈçºÎÌá½»xmlÀàÐÍÊý¾Ý - .NET¼¼Êõ / ASP.NET

Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
  <a>aaa
  </a>
  <b>bbb
  </b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......

c£«£«ÅжÏxmlºÏ·¨ÐÔ

ÈçºÎÓÃc£«£«³ÌÐòÅжÏxmlÖи÷ÔªËØµÄºÏ·¨ÐÔ£¬Õë¶Ô¸ñʽÉϵĺϷ¨ÐÔ£¬·µ»Ø0»òÕß1
ʹÓÃMSXML£¬¼ÓÔØXMLºó£¬Ê¹ÓÃvalidate·½·¨ÑéÖ¤

¾Ý˵ÄãÒªÔÚlinuxÏÂʹÓá£
linuxÏ¿ÉÒÔʹÓÃLibxml2À´²Ù×÷xml£¬Í¬ÑùÌṩÁËvalidateµÄ·½·¨ ......

XML轉DataSet¡¢DataTable

ÎÒÏëÒªÒ»個ͨÓõÄxml轉DataTable£¬xmlÎļþ來×Ô²»Í¬µÄÎÄ檔£¬
ÀýÈ磺excelÎÄ檔Áí´æ為xmlÎÄ檔Ôõô°Ñ這個xmlÎÄ檔轉換³ÉDataSet¡¢DataTable ......

»ùÓÚXML¼¼ÊõµÄÍøÒ³ÄÚÈÝÌáÈ¡

ÈçÌâ
ÎÒÕâѧÆÚÑ¡µÄ¿ÎÌâÊÇÕâ¸öµ«ÊDz»ÖªµÀ¸ÃÔõô׼±¸£¬µ¼Ê¦Ò²Ã»Ôõô˵Çå³þ£¬Ï£Íû¸÷λ´ïÈËÄÜÖ¸µãÒ»¶þ£¬Ð¡µÜÔÚÕâл¹ýÀ²£¡

ллÄã £¬ÎÒÏÖÔÚÒ²×Ô¼º¿´×ÊÁÏÕûÀíË¼Â·ÄØ£¬¾ßÌåµÄ»¹ÒªÒ»µãʱ¼ä¡£
ÒýÓÃ
˼·ÈçÏ£º
ʹÓà ......

ÇëÓо­ÑéµÄxml³ÌÐòÔ±ÍÆ¼ö±¾xmlµÄºÃÊ飬

ÎÒ¿´ÁËÁ½±¾£¬²»ÖªµÀÄǸöºÃµã£¬»òÕßÓÐÆäËû±È½ÏºÃµÄÄØ£¿
http://item.taobao.com/auction/item_detail-0db1-70b70e1e549a9cb9a8a8e9f60cc5c157.htm?cm_cat=0&source=dou
http://www.amazon.cn/mn/detailApp/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ