XML²éѯ ÔªËØÃû³Æ ÊôÐÔ - .NET¼¼Êõ / LINQ
ÇëÎÊÔÚLINQÀïÃæÄÜÔÚÖ»ÖªµÀ½ÚµãµÄÊôÐÔÖµµÄÇé¿öÏ»ñÈ¡½ÚµãµÄÃû³ÆÂð?
±ÈÈç<Domains>
<domain title="PC²Ù×÷ϵͳ"/>
<domain title="ǶÈëʽ²Ù×÷ϵͳ"/>
</Domains>
ÄÜÔÚµÃÖªÊôÐÔtitleÊÇ"PC²Ù×÷ϵͳ"µÄÇé¿öÏ»ñÈ¡µ½Ç°ÃæµÄÔªËØÃû³ÆÊÇ"domain"Âð
title
Ïà¹ØÎÊ´ð£º
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
ÏÖÔÚÓиöxmlÎļþÊÇ<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xm ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎͼ¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
ÏÂÃæÊÇXML³õʼÎļþÄÚÈÝ
XML code:
<upd:Update xmlns:lar="http://schemas.microsoft.com/msus/2002/12/LogicalApplicabilityRules" xmlns:cmd="http://schemas.microsoft.com/msus/2002/12/Up ......