Good day, I am going to try be as breif but informative as possible, I am using asp.net 3.5 and C#, basically what I am attempting to do is collect information from a xml file I recieve from a HTTPRequest. However using the usual dataset.readxml is not working for me. Please take a minute to look through everything before posting any answers.
I recieve xml that looks like this: (I have removed some information but am happy to supply the full XML set that I recieve as I am trying not to spam this with rubbish info)
36547986
Yahunn Digital Printers
DTRJ
155512
BANNERS
15530694.GIF
I attempt to read it using the following:
HttpWebRequest request = WebRequest.Create(builder.Uri) as HttpWebRequest;
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
{
// Get the response stream
StreamReader readerSR = new StreamReader(response.GetResponseStream());
// Console application output
//lblReturn.Text = readerSR.ReadToEnd().ToString();
DataSet XMLDataSet = new DataSet();
XMLDataSet.ReadXml(readerSR);
dgvResults.DataSource = XMLDataSet.Tables[9].DefaultView;
dgvResults.DataBind();
};
But the simple answer is that this does not return a proper set of information to populate the gridview with. The table XMLDataSet.Tables[7].Rows.Count.ToString() contains 223 rows, which is completely incorrect, with the xml I gave that is 1 result(ofcourse I left out 216 "fields" which are returned for the example) but it seems it is creating a row for each "FIELD". My question is, how would I either get the information into a DataGridView, or should I be doing something enirely different to display this information? The reason I would like to use a gridview is purely because I am confrtable with the customization of a gridview.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)