xml Archive

Let’s say I want to read bello XML File using XPath <?xml version="1.0" encoding="UTF-8"?> <MyConfig> <name>Vaibhav Shah</name> <address>Mumbai</address> </MyConfig> To read this XML first we need to load this document , which can be done as foolows // get...
It is very easy code…. You just have to use WriteXml() function here is sample code………   public DataSet GetLocationByMandate() { new SqlConnection("Data Source=.;Initial Catalog=login;Integrated Security=True"); DataSet Ds = new DataSet(); SqlDataAdapter Da = new SqlDataAdapter("your quary",connection); Da.Fill(Ds); Ds.WriteXml("locations1.xml");...
If you want to export attributes from XML file to text file then you just have to read that attribute from xml & write it in text file…I have shown hoe to write string into text file Here …....