Scott Hanselman

At-A-Glance: XmlReader vs. XPathNavigator vs. XmlDocument

April 09, 2003 Comment on this post [0] Posted in Web Services | XML
Sponsored By

This is a great at-a-glance view of the XML options that .NET makes available to Developers.  [From Aaron Skonnard's article by way of Don Box]

-Most efficient (memory)
-Requires manual validation
-Automatic validation
-Run-time type info
-Relatively fast & efficient
(compared to DOM)
-2 to 3x slower than XmlTextReader
XmlDocument (DOM)
-Full traversal
-XPath expressions
-2 to 3x slower than XmlTextReader/XmlValidatingReader
-More overhead than XmlTextReader/XmlValidatingReader
-Full traversal
-XPath expressions
-XSLT integration
-Not as familiar as DOM
-Faster than XmlDocument
-Optimized for XPath/XSLT
-Slower than XmlTextReader

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.