Read XML From URL

image_pdfimage_print
   
 
/*
 * 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:somehostTest.xml";
      XmlTextReader myXmlURLreader = null;
      myXmlURLreader = new XmlTextReader (localURL);

      while (myXmlURLreader.Read())
      {
        //TODO - 

      }
      if (myXmlURLreader != null)
        myXmlURLreader.Close();

    }
  }
}

           
         
     


This entry was posted in XML-RPC. Bookmark the permalink.