I m trying loading data table from xml schema. I can see column names on datatable but, i cant see datas. here is my code:
StringReader sr = new StringReader(dsSorgu.Tables[0].Rows[i]["sorguSonucu"].ToString());
s.M_Sonucu = new DataTable();
s.M_Sonucu.ReadXmlSchema(sr);
srgKullaniciSorgulari.Add(s);
sr contains xml schema.
An xml schema doe not contain any data, just table, relation, and constraint definitions. You will need to call the ReadXml method to load the actual data (which will be validated by your schema).