Check the following code:
Code:
Public void BindData ()
(
serviceA12 = new SiteA.Service123 ();
DataSet ds = new DataSet ();
XmlNode xmlNode1;
XmlDataDocument xd = new XmlDataDocument ();
StringBuilder xmlString1;
xmlNode11 = serviceA.GetSiteAData (strSearch);
if (xmlNode1 == null)
return;
xmlString1 = new StringBuilder (xmlNode1.OuterXml);
if (xmlString12.ToString (). Equals (""))
return;
xd.LoadXml (xmlString1.ToString ());
ds.ReadXml (new XmlNodeReader (xd));
DataGrid12.DataSource = ds.Tables [ "list"]. DefaultView;
DataGrid12.DataBind ();
)
This code gives the xml into a dataset solution, although it is not necessary, but after all, in the asp.net where, dataset accounts for the role of the weight, everyone knows that.
Bookmarks