Categories
Etc

System.Xml.XmlDocument = Voldemorte?

While Mike and I were preparing for a training session this weekend, it occured to me that the XmlDocument is turning into the Voldemorte of the System.Xml namespace.  No one really recommends you use it, in fact, most tell you to avoid it if you can.  It’s really a pretty evil class, and I’ve had to brow-beat more people than I can count out of the XML-is-slow mindset.  XmlReader and XPathNavigator are your friends.  Use them.

Henceforthe, XmlDocument shall be the class-that-shall-not-be-named, especially once System.Xml 2.0 hits the streets.

Advertisements