| Thành viên | Trả lời |
lenh_ho_xung
 Tieu ngao giang ho 42 bài
| 15-6-2008 8:33:20 public static XmlDocument GetXmlDoc(string url) { if (url.Length == 0) throw new Exception("Invalid Url");
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse(); // get the response stream. Stream responseStream = response.GetResponseStream(); // use a stream reader that understands UTF8 StreamReader reader = new StreamReader(responseStream, Encoding.UTF8);
XmlDocument doc = new XmlDocument(); doc.Load(reader);
// close the reader response.Close(); reader.Close();
return doc; }
|
lenh_ho_xung
 Tieu ngao giang ho 42 bài
| 15-6-2008 8:34:0 Có xong đoạn này rồi chỉ cần XSL transform một phát là ra cái giao diện của thằng RSS Feed của yahoo 360
|
 |