Hi all,
I fairly new to CSharp and having trouble figuring out the right code to use to parse and download XML data into a data table.
I did a search but didn't come up with quite the right situation to use. Can you help?
Please see attached code.
Thanks
using System;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;
using System.Data;
using System.IO;
using System.Text;
using System.Data.Sql;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
XmlTextReader reader = new XmlTextReader("https://www.xxxx.aspx");
reader.WhitespaceHandling = WhitespaceHandling.Significant;
XmlDocument xDoc = new XmlDocument();
xDoc.Load(reader);
DataSet ds = new DataSet();
ds.ReadXml(new XmlNodeReader(xDoc));
}
}