I just found this rather interesting article on MSDN that describes what’s new in the System.Xml namespace for .NET Framework 2.0. The main points I took note of where:
- Always use the new factory methods for creating XmlReaders and XmlWriters (i.e. XmlReader.Create and XmlWriter.Create)
- Use XslCompiledTransform instead of XslTransform. Apparently, it compiles your XSLT into MSIL code, which is way cool if you ask me!
- The ReadSubtree()-method on XmlReader looks interesting. It’s always been a bit of a pain navigating an Xml document with just the Read()-method.