jQueryÈçºÎ±à¼xmlÎĵµ - Web ¿ª·¢ / ASP
ÎÒÐèÒª½«Ò»Ð©ÏµÍ³ÐÅÏ¢ÅäÖõ½Ò»¸öXMLÎļþÖУ¬ÓÃjQueryÄܹ»¶ÁÈ¡£¬µ«ÈçºÎÐ޸ġ¢Ìí¼ÓºÍɾ³ýÄØ£¿
ÎÒ³¢ÊÔÁËappend·½·¨Ìí¼ÓÒ»¸ö½ÚµãºÍʹÓÃÁËattr·½·¨ÐÞ¸ÄÔªËØµÄÊôÐÔ£¬¶¼Ã»Óгɹ¦¡£
¾´Çë¸ßÊÖÖ¸µã£¡
JSûÓÐдÎļþµÄȨÏÞ¡£¡£¡£¡£
Ïà¹ØÎÊ´ð£º
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
ÏÖÔÚÓиöxmlÎļþÊÇ<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xm ......
ÈçºÎÓÃATL´°ÌåÓ¦ÓóÌÐòÖÐÓÃSystem.Xml±éÀúÒ»¸öXmlÎļþ
Äã˵µÄÊÇÍйܴúÂ룿
¡£
vc¿ÉÓÃmsxml
http://msdn.microsoft.com/en-us/library/ms767594(VS.85).aspx
MSXML4
//ÒýÈëmsxml4.dll &nbs ......
ÓÃSAX½âÎöXMLÖУ¬Ê¹ÓÃÕâ¶Î´úÂë
String feed="http://www.google.com/ig/api?weather="+strCity;
URL url = new URL(feed.replace(" ", "%20"));
......
htmlÒ³Ãæ¾²Ì¬´´½¨xmlÎļþ£¬²¢±£´æ£¬ÒÔºó¿ÉÒÔ¶ÁÈ¡¡£
²»ÖªÄÄλ´óÏÀ×ö¹ý¡£¡£¡£
лл
javascriptÓ¦¸Ã²»ÄÜ´´½¨Îļþ°É
jsÓÐȨÏÞ´´½¨Ã´£¬´ó¶àÊýÇé¿öϱ»½ûÖ¹°É
ȨÏÞ¡£¡£
ÀúÊ·ÒÅÁôÎÊÌ⣬¿´À´½â¾ö²»ÁËÁË¡£¡£¡£¡£¡ ......