Get XML BaseURI and Local Name : Xml URL Local Name : XML C# Examples


C# Examples » 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);

        }
}
    
   
  
   



Output

file:///C:/books.xml


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» Xml URL Local Name