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);
}
}
Output file:///C:/books.xml
|
HTML code for linking to this page:
|