ÔÚÍøÒ³É϶ÁÈ¡Ô¶³ÌxmlµÄÊý¾Ý_XHTML/WEB_ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØ--Powered by WWW.RONGSEN.COM.CN

ÔÚÍøÒ³É϶ÁÈ¡Ô¶³ÌxmlµÄÊý¾Ý

×÷ÕߣººÚ¿Í·ÀÏßÍø°²XML½Ì³Ì»ùµØ À´Ô´£ººÚ¿Í·ÀÏßÍø°²XML½Ì³Ì»ùµØ ä¯ÀÀ´ÎÊý£º0

±¾Æª¹Ø¼ü´Ê£ºÊý¾ÝÔ¶³Ì¶ÁÈ¡ÍøÒ³
ºÚ¿Í·ÀÏßÍø°²ÍøѶ£ºÒ»¸ö¿Í»§Ìṩһ¸ö¹É¼ÛµÄÐÅÏ¢£¬ÒªÇó·ÅÔÚÒ³ÃæÉÏ£¬ÏÔʾһЩÊý¾Ý£¬ÐèÒª´ÓÔ¶³Ì»ñÈ¡xml£¬È»ºó½âÎöдÔÚÍøÒ³ÉÏ£¬¿ªÊ¼²»»á¾õµÃºÜÄÑ£¬ÆäʵÂù¼òµ¥µÄ£¬ÏÈÓÃjavascriptдÁËÒ»¸ö£º ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º<scr...

Ò»¸ö¿Í»§Ìṩһ¸ö¹É¼ÛµÄÐÅÏ¢£¬ÒªÇó·ÅÔÚÒ³ÃæÉÏ£¬ÏÔʾһЩÊý¾Ý£¬ÐèÒª´ÓÔ¶³Ì»ñÈ¡xml£¬È»ºó½âÎöдÔÚÍøÒ³ÉÏ£¬¿ªÊ¼²»»á¾õµÃºÜÄÑ£¬ÆäʵÂù¼òµ¥µÄ£¬ÏÈÓÃjavascriptдÁËÒ»¸ö£º
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º

<script language=javascript>
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.load("http://****.com/scripts/****.asp?subcode=C22");
nodes = xmlDoc.documentElement.childNodes;
var text = xmlDoc.selectSingleNode("//last").text
document.write(text);
</script>

http://****.com/scripts/****.asp?subcode=C22 ,ÊÇ¿Í»§ÌṩµÄÒ³Ã棬ÆäʵÊÇxmlµÄÄÚÈÝ£¬ÕâÀïÖ±½Óµ÷ÓÃwindowsµÄ×é¼þ½øÐжÁÈ¡£¬È»ºóµ÷ÓÃÆäÖÐÒ»¸öselectSingleNodeµÄ·½·¨£¬¶Á³ölast×ֶεÄÄÚÈÝ£»
VBscriptҲдÁËÒ»¸ö£¬Æäʵ²î²»¶à£¬²»¹ýÓÐÒ»µã²»Í¬£¬aspÖÐVBµÄ²»ÄÜÖ±½Ó¶ÁÈ¡Ô¶³ÌxmlµÄÄÚÈÝ£¬ºÜÆæ¹Ö£¬²»ÖªµÀÊDz»ÊÇÓÉÓÚVBµÄÏÞÖÆ£º

ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º

dim XMLMorntekDocument
Set http=Server.CreateObject("Microsoft.XMLHTTP")
http.Open "GET","http://****com/scripts/******.asp?subcode=C22",False
http.send
Set XMLMorntekDocument=Server.CreateObject("Microsoft.XMLDOM")
XMLMorntekDocument.Async=False
XMLMorntekDocument.ValidateOnParse=False
XMLMorntekDocument.Load(http.ResponseXML)
price = XMLMorntekDocument.selectSingleNode("//last").text
response.write price
Set http=Nothing
Set XMLMorntekDocument=Nothing

ÕâÀïÏÈÓÃXMLHTTPµÄ·½·¨£¬getµ½xmlÎļþ£¬È»ºóÔÙ½âÎö

    ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤·½°¸±¾ÆªÁ¬½Ó£ºhttp://www.rongsen.com.cn/show-16233-1.html
Íøվά»¤½Ì³Ì¸üÐÂʱ¼ä:2012-04-06 01:14:44  ¡¾´òÓ¡´ËÒ³¡¿  ¡¾¹Ø±Õ¡¿
ÎÒÒªÉêÇë±¾Õ¾£ºNµã | ºÚ¿Í·ÀÏß¹ÙÍø |  
רҵ·þÎñÆ÷ά»¤¼°Íøվά»¤ÊÖ¹¤°²È«´î½¨»·¾³£¬ÍøÕ¾°²È«¼Ó¹Ì·þÎñ¡£ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØÕÐÉ̽øÐÐÖУ¡QQ:29769479

footer  footer  footer  footer