ÏÖÔÚ³ÌÐòÖÐÊÇͨ¹ýxmlHttp.responseXML»ñÈ¡ÁËÒ»¸öxml£¬¸ñʽÈçÏÂ
XML code:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<device>358279018906196</device>
<lnglat>117.124844,31.986617,0.0 117.241917,32.017188,0.0</lnglat>
</response& ......
×¢£º1.ÊÖ¶¯É¾³ýieÁÙʱÎļþºó¿ÉÒÔ»ñÈ¡ÐÂÊý¾Ý£»2.Ë¢ÐÂÒ³Ãæ²»ÄÜ»ñÈ¡ÐÂÊý¾Ý£»3.²»ÒªËµ¼ÓËæ»úÊýÔÚurlÉÏ£¬ÎÒ²»ÖªµÀ¾ßÌå¼ÓÔÚ
ÄÄÀÎÒÂÒÊÔÁËÒ²»¹ÊDz»ÐУ»4.Ï£ÍûµÃµ½µÄЧ¹ûÊǵã»÷¡°»ñÈ¡Êý¾Ý¡±ºó¿ÉÒÔÏÔʾxmlÀïµÄ×îÐÂÊý¾Ý£»5.ÕýÔڸϱÏÒµÉè¼Æ£¬Ê±¼ä½ô
ÆÈ£¬Çë¸ßÈËÖ¸µã£¡
<script type="text/javascri ......
xmlÎĵµÈçÏÂ:
XML code:
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<JXWEB xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="¼¨Ð§¹ÜÀ ......
ÎÒÒªÔÚwindows´°ÌåÏÂÉè¼ÆÒ»¸ö¶ÁÈ¥excelÎļþ²¢×ª»»³ÉxmlÎļþ.
ÏÖÔڴ󲿷ֹ¦Äܶ¼ÊµÏÖÁË,µ«³öÏÖÁ˺ܴóµÄÎÊÌâ....
ÏÖÔÚÎÒµÄexcelÎļþ°üº¬ÒÔÏÂÄÚÈÝ:
±àºÅ ÐÕÃû ѧ·Ñ ÔÓ·Ñ
001 a 54 65
002 b ......
RT ÓÐʲô·½·¨°ÑSTRINGת³ÉXMLµÄELEMENT¶ÔÏó£¬Ð´ÈëDOCUMENT¶ÔÏóÖÐÈ¥£¬²»ÒªÈ¥¶ÁдÎļþ
string = " <data> <id> </id> </data>",ÄÇDOCUMENTÖÐ2¸ö²ã´ÎµÄELEMENT¶ÔÏó
ÄÄλ´óÏÀдµÄ³öÀ´£¿ÓÃJDOMµÈ¶¼¿ÉÒÔ
ÊDz»ÊÇ˵µÄÕâÑùµÄ£¿
Java code:
http://www.blogjava.net/fangwei/arch ......
<?xml version="1.0" encoding="UTF-8"?>
<database>
<dbinfo id="100">
<dirver>com.mysql.jdbc.Driver </dirver>
<url>jdbc:mysql://localhost:3306/testdb </url>
<username>root </username>
......