Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Need Help Parsing & Loading XMLTextReader Data to Database

$
0
0

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));


        }
}

 


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>