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.
 

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

Back
Top