Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÄǸöxml½âÊÍÆ÷ÄܽâÊÍÖÐÎĵģ¿

simplexmlÕâ¸ö¶ÓÖÐÎĵÄÖ§³Ö²»´óºÃÓð¢

Warning: simplexml_load_file() [function.simplexml-load-file]: /home/www/.../home/.../Tmp/xxx.txt:1: parser error : Extra content at the end of the document in /home/www/.../home/.../parsexml.class.php on line 64

Warning: simplexml_load_file() [function.simplexml-load-file]: <name>Ô¬Ó¨ </name> <place>¶­ÊÂ×ܾ­Àí </place> <company>¹ãÖÝÊÐÀ¶É«»ðÑæ¹ã¸æÓÐÏÞ¹«Ë¾ </c in /home/www/.../home/.../parsexml.class.php on line 64

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/www/.../home/.../parsexml.class.php on line 64

Fatal error: Call to a member function children() on a non-object in /home/www/.../home/.../parsexml.class.php on line 71

ÖÐÎıØÐëÊÇutf-8¸ñʽµÄ.
½¨Òé¿ÉÒÔÓÃ
PHP code:
$strXML = file_get_contents("/home/www/.../home/.../Tmp/xxx.txt");
$so = simplexml_load_string(iconv('gbk','utf-8',$strXML));


txtÎļþͨ³£ÊÇʲô±àÂëµÄ£¿

ÒýÓÃ
txtÎļþͨ³£ÊÇʲô±àÂëµÄ£¿

±£´æÊ²Ã´¾ÍÊÇʲô


ĬÈÏ ANSI




»¹ÊDz»ÄÜ¡£±¯¾çÁË

Îļþ±£´æ³Éutf-8µÄÒ²ÊDz»ÐÐ

PHP code



Code highlighting produced by Actipro CodeHighlighter (freeware)
http://w


Ïà¹ØÎÊ´ð£º

php ¶ÁxmlÎļþ

ÎÒÔÚʹÓÃDom¶ÁxmlÎļþʱÓöµ½Ò»¸öÎÊÌ⣬¾ÍÊǵ±123.xmlÎļþ²»´æÔÚʱ£¬load(123.xml)¾Í±¨´í£¬ÔõôÑù²ÅÄÜÅжÏÕâ¸öÎļþÊÇ·ñ´æÔÚ°¡£¬ÎÒÒªµÄÊÇ´æÔÚʱ¾Í¶ÁÈ¡£¬²»´æÔÚ¾ÍÌø¹ý£¬¼ÌÐøµÄ¶ÁÏÂÒ»¸öxml£¬Çë½Ì¸÷λ´óÏÀ£¬

$file ......

XML Schema ÎÊÌâ

ÇóÖú¸÷λ´óϺ£¬Ñ§Éú³É¼¨µ¥XML SchemaµÄÉè¼Æ,XMLÎĵµµÄÉè¼Æ£¬°üº¬µÄÖ÷ÒªÐÅÏ¢£ºÑ§ºÅ¡¢Ñ§ÉúÐÕÃû¡¢Ïµ²¿¡¢°à¼¶¡¢¿¼ÊÔÈÕÆÚ¡¢ÈονÌʦ¡¢Ñ§·Ö¡¢Ñ§Ê±¡¢ÐÞϰÀà±ð¡¢Java³ÌÐòÉè¼Æ³É¼¨,ÍøÂç»ù´¡ÖªÊ¶³É¼¨¡¢ÍøÒ³ÖÆ×÷³É¼¨¡¢Èí¼þ¹¤³Ì³ ......

ÓÐûÓÐphp´úÂë¿ÉÒÔ½«excelת³ÉxmlµÄ

ÈçÌ⣬ÓÐûÓÐÕâÑùµÄphp´úÂë¡£ÎÒÏÖÔÚÏ뽫excelµÄÄÚÈݲåÈëmysqlÊý¾Ý¿â£¬Ï£Íû¿ÉÒÔ½«excelת³Éxml,È»ºó½âÎöxml²åÈëÊý¾Ý¿âÖС£Èç¹ûÓÐÕâÑùµÄ´úÂ룬ÉõÖÁÊÇÓÐÃûµÄ´úÂ룬һ¶¨Òª¸æËßÎÒ°¡¡£
ÏȶÁ excel => È»ºóÉú³É xml = ......

setTextContent±à¼­XMLÎļþÄÚÈÝû±ä»¯

Java code:
/**
* ÉèÖÃÖ¸¶¨µÄÔªËØÃûºÍ½ÚµãË÷ÒýËù¶ÔÓ¦½ÚµãµÄÄÚÈÝ
* @param ÔªËØÃû
* @param ½ÚµãË÷Òý
* @param ÄÚÈÝ
*/
public void setElementContent(String elementName,in ......

AJAX´¦ÀíXMLÎĵµÎÊÌâ

<XML>
<FLAG>1</FLAG>
<REASON></REASON>
<ADVERT><ADID>64</ADID><ADNAME>Ó¢»ÊÓéÀÖËÄ</ADNAME><ADCONTENT>ÄÚÈÝÒ»</ADCONTENT><ADT ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ