C# ÔõÑù¶ÁÈ¡XMLÎļþÖеÄÖ¸¶¨Öµ
×¢ ÎÒÓõÄÊÇC#
ÎÒ×Ô¼ºÐ´ÁËÒ»¸öÀ࣬¹¦ÄÜÊǶÁÈ¡XMLÎļþÖеÄÖ¸¶¨½ÚµãµÄÖµ¡£
XMLÎļþÄÚÈÝÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<Patients>
<Patients_virtue>
<ID>001 </ID>
<Last_Name>jay </Last_Name>
<First_Name>hoho </First_Name>
<MI>0091 </MI>
<Creation_Date>20091220 </Creation_Date>
<Patient_ID>100 </Patient_ID>
<Sex>nan </Sex>
<Date_of_Birth>19820611 </Date_of_Birth>
<Patient_Photo>C:Patient_Photo\ID001.png </Patient_Photo>
<Weight>75kg </Weight>
<Known_Allergies>yes </Known_Allergies>
<Specialty>ewet3 </Specialty>
<MRN>1.5 </MRN>
<Purpose_of_Consultation>edawfvds </Purpose_of_Consultation>
</Patients_virtue>
</Patients>
ÀàÈçÏ£º
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
namespace ClassLibrary1
{
public class
Ïà¹ØÎÊ´ð£º
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
ÈçÌ⣬ÓÐûÓÐÕâÑùµÄphp´úÂë¡£ÎÒÏÖÔÚÏ뽫excelµÄÄÚÈݲåÈëmysqlÊý¾Ý¿â£¬Ï£Íû¿ÉÒÔ½«excelת³Éxml,È»ºó½âÎöxml²åÈëÊý¾Ý¿âÖС£Èç¹ûÓÐÕâÑùµÄ´úÂ룬ÉõÖÁÊÇÓÐÃûµÄ´úÂ룬һ¶¨Òª¸æËßÎÒ°¡¡£
ÏȶÁ excel => È»ºóÉú³É xml = ......
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽÎļþ
<folder state="unchecked" label="È«²¿">
¡¡¡¡<folder state="unchecked" isBra ......
ÒÑÖªÎļþ1.xmlºÍÊý¾ÝÎļþdb.xml£¬ÈçºÎÓÃjava±àд³ÌÐò£¬µÃ³ö2.xmlÎļþ£¿
1.ÒÑÖªxmlÎļþ 1.xml½á¹¹ÈçÏ£º
<cs>
<cs name="cs1" details="This is cs1" country="China&q ......