XML DataSet Vs.XmlTextReader ... Which to use

  • Thread starter Thread starter Maziar Aflatoun
  • Start date Start date
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.
 
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:
 
Back
Top