phpÑ»·¶ÁÈ¡xml£¨Ô¶³Ì£©Êý¾Ý£¿ - PHP / »ù´¡±à³Ì
phpÔõôѻ·¶ÁÈ¡ºìÉ«²¿·ÖµÄ2ÌõÊý¾Ý£¨·Ö2Ìõ¶Á³öÀ´£©£¬ÏÈлÁË£¡
È磺
µÚÒ»Ìõ£º00001 11111 ....
µÚ¶þÌõ£º00002 22222 ....
<?xml version="1.0" encoding="utf-8" ?>
- <home_url>
- <url_list="true">
- <USA>
<id>00001</id>
<time>2010-05-05 01:22:28</time>
<tid>1111</tid>
- <location>
<city>¹þ¶û±õ</city>
<state>ºÚÁú½</state>
</location>
</USA>
- <USA>
<id>00002</id>
<time>2010-05-05 01:22:28</time>
<tid>2222</tid>
- <location>
<city>¹þ¶û±õ</city>
<state>ºÚÁú½</state>
</location>
</USA>
</url_list>
</home_url>{{
Ïà¹ØÎÊ´ð£º
txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔÊý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽÎļþ
<folder state="unchecked" label="È«²¿">
¡¡¡¡<folder state="unchecked" isBra ......
ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌøתҳÃæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......
ÈçºÎÓÃATL´°ÌåÓ¦ÓóÌÐòÖÐÓÃSystem.Xml±éÀúÒ»¸öXmlÎļþ
Äã˵µÄÊÇÍйܴúÂ룿
¡£
vc¿ÉÓÃmsxml
http://msdn.microsoft.com/en-us/library/ms767594(VS.85).aspx
MSXML4
//ÒýÈëmsxml4.dll &nbs ......
mssql_select_db("f1",mssql_connect("localhost","sa","sa"));
mssql_select_db("f2",mssql_connect("192.168.0.1","sa","sa") ......