XML DataSet Vs.XmlTextReader ... Which to use

M

Maziar Aflatoun

Hi,

I have a multi-level complex XML that I like to process and store in the
database. I'm comfortable with using DataSet and then reading the tables
(XML is parsed into 7 tables in my case) and processing the data. However,
just to become familar with XmlTextReader, I've done the same thing using
XmlTextReader. Any major difference between the two that I should be aware
of for a production level application? Especially when the XML is really
complex. Is using DataSet.ReadXml a solid method to read XML and process it?


Thanks
Maz.
 
R

Rudderius

I should advice only to use the DataSet.ReadXml() method if the xml file
is not to complex and contains kind of tables. (so only use it if it was
writen wy DataSet.WriteXml())

use the XmlTextReader if your Xml file has always the same schema

another possible approach is to get a schema en then use Serialization.

greetz,
Dries

Maziar Aflatoun schreef:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top