ÔõÑùÈ¡³öXmlÖÐËùÓжÔÏóµÄÄÚÈÝ
<?xml version="1.0" encoding="utf-8"?>
<Patients>
<Patients_virtue ID = "001">
<Last_Name>jay </Last_Name>
<First_Name>hoho </First_Name>
<MI>0091 </MI>
<Creation_Date>20091220 </Creation_Date>
<Patient_ID>100 </Patient_ID>
</Patients_virtue>
<Patients_virtue ID = "002">
<Last_Name>LiLi </Last_Name>
<First_Name>ccc </First_Name>
<MI>1015 </MI>
<Creation_Date>20091221 </Creation_Date>
<Patient_ID>101 </Patient_ID>
</Patients_virtue>
<Patients_virtue ID = "003">
<Last_Name>suzuki </Last_Name>
<First_Name>tanaka </First_Name>
<MI>1231 </MI>
<Creation_Date>20091222 </Creation_Date>
<Patient_ID>110 </Patient_ID>
</Patients_virtue>
</Patients>
ÉÏÃæµÄxmlÎļþÖÐÓÐ 3¸ö²¡È˵ÄÐÅÏ¢ ÎÒÏëͨ¹ýµ÷ÓÃÒ»¸öº¯ÊýÒÀ´ÎÈ¡³öÿ¸ö²¡È˵ÄÐÅÏ¢ £¬Ã¿´
Ïà¹ØÎÊ´ð£º
ÇëÎʸ÷λ´óʦ£¬ÎÒÏÖÔÚÐèÒª½«XMLµÄÊý¾ÝʵʱµÄ´æÈëµ½Êý¾Ý¿âÖУ¬ÎÒÊÇÓÃasp±àµÄ³ÌÐò£¬´óÁ¿Ãǰïæ·ÖÎö һϣ¡£¡£¡
ÏÂÃæÊÇÎÒµÄXMLÎļþ´úÂë
XML code:
<?xml version="1.0" encoding="utf-8"? ......
ÎÒÔÚʹÓÃDom¶ÁxmlÎļþʱÓöµ½Ò»¸öÎÊÌ⣬¾ÍÊǵ±123.xmlÎļþ²»´æÔÚʱ£¬load(123.xml)¾Í±¨´í£¬ÔõôÑù²ÅÄÜÅжÏÕâ¸öÎļþÊÇ·ñ´æÔÚ°¡£¬ÎÒÒªµÄÊÇ´æÔÚʱ¾Í¶ÁÈ¡£¬²»´æÔÚ¾ÍÌø¹ý£¬¼ÌÐøµÄ¶ÁÏÂÒ»¸öxml£¬Çë½Ì¸÷λ´óÏÀ£¬
$file ......
½ñÌìÓöµ½Ò»¸öÎÊÌ⣬°ÑxmlÖеÄÖµ×°µ½.txt¸ñʽµÄÎļþÖС£
ÎÒĿǰÏëµ½Á½ÖֱȽϱ¿µÄ·½·¨£º1.¿ÉÒÔͨ¹ýxmlspy±à¼¹¤¾ßʵÏÖ
2.ͨ¹ý°Ñxmlת³ÉJavabean£¬È»ºóתµ½excelÖУ¬ÔÙ´Óб£´æÖØÃüÃûΪ. ......
ÈçÌ⣬ÓÐûÓÐÕâÑùµÄphp´úÂë¡£ÎÒÏÖÔÚÏ뽫excelµÄÄÚÈݲåÈëmysqlÊý¾Ý¿â£¬Ï£Íû¿ÉÒÔ½«excelת³Éxml,È»ºó½âÎöxml²åÈëÊý¾Ý¿âÖС£Èç¹ûÓÐÕâÑùµÄ´úÂ룬ÉõÖÁÊÇÓÐÃûµÄ´úÂ룬һ¶¨Òª¸æËßÎÒ°¡¡£
ÏȶÁ excel => È»ºóÉú³É xml = ......
ÒÑÖªÎļþ1.xmlºÍÊý¾ÝÎļþdb.xml£¬ÈçºÎÓÃjava±àд³ÌÐò£¬µÃ³ö2.xmlÎļþ£¿
1.ÒÑÖªxmlÎļþ 1.xml½á¹¹ÈçÏ£º
<cs>
<cs name="cs1" details="This is cs1" country="China&q ......