tvks

tvks

  • NA
  • 3
  • 0

XML Compatability

May 11 2007 8:29 AM
Hi all, I am using the below code to write into an XML file. public void Save_Dataset_XML(DataSet ds, string flname) { StreamWriter myStreamWriter = new StreamWriter(@flname); ds.WriteXml(myStreamWriter); myStreamWriter.Close(); } In the above code if a dataset cell is empty it is replaced by as how I wanted it. When I retrieve the XML file using the below code even is being displayed. ds.ReadXml(@"c:/Test.xml"); DispGrid.DataSource = ds.Tables[0]; DispGrid.DataBind(); How do I filter HTML components from being displayed ? Thanx for any help, Regards, tvks