Friday, August 05, 2005

Omiting the Xml Declaration and the XSD and XSI namespaces

Scott Hanselman of The Ultimate Tools List fame posts together a useful snippet of code to Serialize an object while omiting the Xml Declaration and the XSD and XSI namespaces -- The XmlFragmentWriter.

This snippet was cobbled together from Sairama, a platform engineer at Corillian and Daniel Cazzulino and, I'm sure, Scott too.

I've always kinda' disliked the extra "baggage" but was waaay too lazy to do anything about it.

[Listening to: Stone Temple Pilots - Where the River Goes]

No comments: