Get XML BaseURI and Local Name : Xml URL Local Name « XML « C# / CSharp Tutorial






using System;
using System.Xml;

class MainClass
{
    static void Main(string[] args)
    {

        XmlTextReader reader = new XmlTextReader(@"C:\books.xml");

        Console.WriteLine(reader.Name);
        Console.WriteLine(reader.BaseURI);
        Console.WriteLine(reader.LocalName);

    }
}
file:///C:/books.xml








30.18.Xml URL Local Name
30.18.1.Get XML BaseURI and Local Name