Read XML From URL
/*
* C# Programmers Pocket Consultant
* Author: Gregory S. MacBeth
* Email: gmacbeth@comporium.net
* Create Date: June 27, 2003
* Last Modified Date:
* Version: 1
*/
using System;
using System.IO;
using System.Xml;
namespace Client.Chapter_22___XML
{
public class ReadXMLFromURL
{
static void Main(string[] args)
{
string localURL = "http:\\somehost\\Test.xml";
XmlTextReader myXmlURLreader = null;
myXmlURLreader = new XmlTextReader (localURL);
while (myXmlURLreader.Read())
{
//TODO -
}
if (myXmlURLreader != null)
myXmlURLreader.Close();
}
}
}
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
|