js¶ÁÈ¡xmlÎÊÌâ
var feed_xml = new ActiveXObject("Microsoft.XMLDOM");
feed_xml.async="true";
feed_xml.load("test.xml");
//alert(1);
nodes=feed_xml.documentElement.childNodes;
Óöµ½Ò»¸öÆæ¹ÖÎÊÌ⣬ÒÔÉÏÒ»¶Î´úÂëÑéÖ¤¹ýÊÇûÓÐÎÊÌâµÄ¡£xmlÒ²ÊǿɶÁµÄ¡£°´µÀÀíÓ¦¸ÃÄÜʵÏÖÁË¡£µ«Ææ¹ÖµÄÊÇÔÚfeed_xml.load("test.xml");ºÍnodes=feed_xml.documentElement.childNodes;Ö®¼ä±ØÐë¼ÓÒ»¸öalert(1);²ÅÄܱÜÃâ³ö´í(¼ÓÁËÕâ¾ä¾ÍÕý³£¶ÁÈ¡ÁË£¬²»¼Ó²»ÐÐ)£¬µ«ÎÒÉÏÍø²é¹ýȴûÓÐÏà¹Ø×ÊÁÏ¡£·Ç³£À§ÈÅ¡£Íû¸ßÊÖ½â´ð¡£
ÎÒÔÚ±¾µØ²âÊÔ
var feed_xml = new ActiveXObject("Microsoft.XMLDOM");
feed_xml.async="true";
feed_xml.load("test.xml");
nodes=feed_xml.documentElement.childNodes;
ûÎÊÌâ°¡£¬Â¥Ö÷µÄie¡¢²Ù×÷ϵͳÊǶàÉÙ£¬¹À¼ÆºÍÕâЩÓйØÏµ£¨ÎÒµÄxp,ie8£©
lsÕý½â
Ïà¹ØÎÊ´ð£º
RT
ÓÐûÓÐÔ´ÂëʵÀý£¡
лл£¡
²»ÊÇÓÐdom4jÕâÑùµÄ½âÎöxmlÎļþµÄ°üô ¸ÉÂï·ÇÒªÓÃÕýÔò£¿
Êܲ»ÁË£¡
Ã²ËÆ²»ÐаÉ
ÓУ¬ºÃ¼¸¸öÄØ£¬DOM,jdom£¬dom4j¡£¡£
¹þ¹þ£¡
ÓÉÓÚÎÒµÄxml±àÂë¸ñʽÓеãÎÊÌ⣬² ......
HTML code:
<div id="tessx">
<ALEXA VER="0.9" URL="163.com/" HOME="0" AID="=">
<RLS PREFIX="http://" more="79" ......
ºÃ ÎÒÏëѧϰXMLºÃÊ飬ÇëÎÊÓÐʲôÊ飬¿ÉÒÔÉîÈëµÄѧϰÏÂµÄ Ð»Ð»
ÎÞ·Ï»°XML ̨ÍåÁ½Ö»ÀÏ»¢
XMLÈëÞµä
ÓÑÇé °ï¶¥¡£
ÎÞ·Ï»°XML ̨ÍåÁ½Ö»ÀÏ»¢ÖªÊ¶µã±È½ÏÉÙ
XML´ÓÈëÃŵ½¾«Í¨
......
GangliaÖеÄgmond×é¼þ¿ÉÒÔÊÕ¼¯»úÆ÷×ÊÔ´µÄÐÅÏ¢£¬Í¨¹ýÃüÁtelnet localhost 8649 ºó£¬¾Í»áÔÚÆÁÄ»ÉÏ·µ»ØÒ»¸öxml¸ñʽµÄ×ÊÔ´ÐÅÏ¢µÄ×Ö´®¡£ÇëÎÊÔÚjavaÖÐÈçºÎ»ñÈ¡telnet·µ»ØµÄ½á¹ûÄØ£¿£¨ÔÚjavaÖÐÎÒÖªµÀÔõôȥµ÷ÓÃtelnetÃü ......
ÈçÌâ
ÎÒÕâѧÆÚÑ¡µÄ¿ÎÌâÊÇÕâ¸öµ«ÊDz»ÖªµÀ¸ÃÔõô׼±¸£¬µ¼Ê¦Ò²Ã»Ôõô˵Çå³þ£¬Ï£Íû¸÷λ´ïÈËÄÜÖ¸µãÒ»¶þ£¬Ð¡µÜÔÚÕâл¹ýÀ²£¡
ллÄã £¬ÎÒÏÖÔÚÒ²×Ô¼º¿´×ÊÁÏÕûÀíË¼Â·ÄØ£¬¾ßÌåµÄ»¹ÒªÒ»µãʱ¼ä¡£
ÒýÓÃ
˼·ÈçÏ£º
ʹÓà ......