Saturday, November 27, 2004

Reading Xml what to choose ??

When reading Xml files you can choose XmlReader or XmlDocument. Each has a different purpose. XmlReader is a forward only non cached way of reading Xml documents. It does not remember that it passes through.

On the other hand using XmlDocument gives you advantage of jumping from one node to the other. Once an xml file is loaded into XmlDocument object , it knows the structure of the xml document and waits for your commands.

No comments: