Csharp/CSharp Tutorial/XML/Xml URL Local Name
Get XML BaseURI and Local Name
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