0
Reply

XML Compatability

Ask a question
tvks

tvks

17y
1.9k
1
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