xmlÎļþ±£´æÊ±µÄ¸ñʽÎÊÌâ - PHP / »ù´¡±à³Ì
ÎÒÏÖÔÚ±£´æµÄxmlÎļþÊÇÕâÑùµÄ£ºXML code:
<?xml version="1.0" encoding="utf-8"?>
<document><item><name>wzwen</name><date>2010-04-22 22:33:28</date><IP>127.0.0.1</IP></item><item><name>ÀîËÄ</name><date>2010-04-22 22:33:35</date><IP>127.0.0.1</IP></item></document>
ÆäʵÎÒÊÇÏë±£´æ³ÉÕâÑùµÄ£ºXML code:
<?xml version="1.0" encoding="utf-8"?>
<document>
<item><name>wzwen</name><date>2010-04-22 22:33:28</date><IP>127.0.0.1</IP></item>
<item><name>ÀîËÄ</name><date>2010-04-22 22:33:35</date><IP>127.0.0.1</IP></item>
</document>
Óа취Âð£¿
PHP code:
<?php
$str =<<<EOD
<?xml version="1.0" encoding="utf-8"?>
<document>
<item><name>wzwen</name><date>2010-04-22 22:33:28</date><IP>127.0.0.1</IP></item>
<item><name>ÀîËÄ</name><date>201
Ïà¹ØÎÊ´ð£º
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽÎļþ
<folder state="unchecked" label="È«²¿">
¡¡¡¡<folder state="unchecked" isBra ......
ÏÖÔÚÓиö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»úÉÏÖ´Ðе ......
±±¾©2ÄêPHP¾ÑéÇó¼æÖ°
½Ó·Ö
·¹ý½Ó·Ö£¡.¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
jf~~~~~~~~~~~~~~Ö§³Ö
ßÀ¡£¡£ÎÒÃÇÐèÒª¼æÖ°£¬¿ÉÊÇÔõôÁªÏµÄãѽ£¿
¶¥¡£¡£¡£ »Ø¸´ÄÚÈÝ »Ø¸´ÄÚÈÝÌ«¶ÌÁË£¡
º¼ÖÝÄãÈ¥²»È¥°¡ ¡£¡£¡£¡£¡ ......
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Çý¶¯³ÌÐò¹ÜÀíÆ÷] δ·¢ÏÖÊý¾ÝÔ´Ãû³Æ²¢ÇÒδָ¶¨Ä¬ÈÏÇý¶¯³ÌÐò, SQL state IM002 in SQLConnect in D:\0\msc\msc\tel.php on line 44
Í ......