A:可以這樣實(shí)現的,請看C#代碼
請看下列代碼:
using System;
using System.IO;
using System.Xml;
public class Sample
{
public static void Main()
{
//Create the XmlDocument.
XmlDocument doc = new XmlDocument();
//Load the XML file from a remote url
doc.Load("http://www.yesky.com/news/stock.asp");
doc.Save(Console.Out);
}
}
這樣,該C#程序就會(huì )把從遠程ASP頁(yè)面傳過(guò)來(lái)的XML顯示在Console.Out(控制臺的輸出)了。
聯(lián)系客服