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

XMLȡֵ µÄÎÊÌâ,´ó¼Ò°ï棬ллÁË

´ó¼Ò°ï°ïæ¡£¡£
ÎÒµÄXMLÊÇÏÂÃæÕâÖÖ¸ñʽµÄ£ºxmlÎļþÃûÊÇmain.xml
<body>
<info ids="1" xmlpath="1.xml"> </info>
<info ids="2" xmlpath="2.xml"> </info>
<info ids="3" xmlpath="3.xml"> </info>
<info ids="4" xmlpath="4.xml"> </info>
<info ids="5" xmlpath="5.xml"> </info>
<info ids="6" xmlpath="6.xml"> </info>
</body>

    ÎÒÏëͨ¹ýidsµÄÖµÀ´»ñµÃxmlpathµÄÖµ£¬Çë´ó¼Ò¸øµã½â¾ö·½°¸£¬Ð»Ð»ÁË£¡£¡
    ¾¡Á¿Ê¹ÓÃxmlDocumentµÄ·½·¨À´×ö°É£¡
"/body/info[@ids='1']/@ids"

    Â¥ÉϵĴó¸ç£¬ÄÜ˵Çå³þµãÂð£¿Ð»Ð»ÄãÁË¡£¡£ÏÖÔÚ¼±ÓÃ

¶¼Á©×©Ê¯ÁË£¬25·Ö¶¼ÇÀ¡£¡£¡£

ÒýÓÃ
¶¼Á©×©Ê¯ÁË£¬25·Ö¶¼ÇÀ¡£¡£¡£

¹þ¹þ C# code:
/// <summary>
/// Ñ¡ÔñÆ¥ÅäXPath±í´ïʽµÄ½ÚµãÁбíXmlNodeList.
/// </summary>
/// <param name="xmlFileName">XMLÎĵµÍêÈ«ÎļþÃû(°üº¬ÎïÀí·¾¶)</param>
/// <param name="xpath">ҪƥÅäµÄXPath±í´ïʽ(ÀýÈç:"//½ÚµãÃû//×Ó½ÚµãÃû")</param>
/// <returns>·µ»ØXmlNodeList</


Ïà¹ØÎÊ´ð£º

ÈçºÎÌá½»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¸ñʽ·µ»Ø - MS-SQL Server / Ó¦ÓÃʵÀý

´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......

ie6 xml ¸ß·ÖÇó½â£¡

ä¯ÀÀÆ÷IE6
ÔÚÒ»¸öÒ³ÃæÖÐÓÐÒ»¸öÁ¬½Ó£¬Á¬½ÓµÄÒ³ÃæÄÚÈÝÈçÏ£º
<%@ page contentType="text/xml; charset=UTF-8" language="java"%>
<?xml version="1.0" encoding=& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ