new XmlTextReader (String localURL) : XmlTextReader « System.Xml « C# / C Sharp by API






new XmlTextReader (String localURL)

   

using System;
using System.IO;
using System.Xml;

class MainClass
{    
  static void Main(string[] args)
  {
    string localURL = "http:\\www.yoursite.com\\Test.xml";
    XmlTextReader myXmlURLreader = null;
    myXmlURLreader = new XmlTextReader (localURL);

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

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

  }
}

   
    
    
  








Related examples in the same category

1.new XmlTextReader(String fileName)
2.XmlTextReader.BaseURI
3.XmlTextReader.LocalName
4.XmlTextReader.Name