Xml performance comparison

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi.. regarding xml reading and writing I notice that there are two option to archive this operation which are XMLDocument, XMLElement and ReadXML, WriteXML. What are the major difference between these two?

Any reply would greatly help. thanks
 
for reading xml,
you can use XMLTextReader for better performance. and use XMLTextWriter
similarly.
if you are using XPath queries..the best way is to use XPathDocument
(non-editable dom) and XPathNavigator.

the diff between XMLDocument and XMLElement is nothing but its the relation
of Document and an Element..
hth,
Av.
 
Back
Top