Blog Map
[Blog Map] This blog is inactive. New blog: EricWhite.com/blog
(Update June 22, 2010 - This tool has been released for Visual Studio 2010.)
There is a cool add-in for Visual Studio that I use. It is the Open XML Package Editor, which is a graphical treeview based editor for examining and editing Open XML Package files. Once you install the add-in, you can drag an Open XML document into Visual Studio, and browse through the parts, and open specific parts for editing in Visual Studio's great XML editor. Visual Studio doesn't keep the file open, so you can use it in the following scenarios:
This is a very convenient way to examine and edit the XML in Open XML docs!
Of course, Word does not indent the XML when deserializing. You can use the XML formatting option in the XML editor to make it easy to view and edit the XML. I like to set an option in VS so that when you format the XML, it lines up the attributes. This is a far easier way to see the XML when there are lots of attributes, or lots of namespaces. To set this option, select Tools, Options on the menu, expand Text Editor, expand XML, click on Formatting, and set the option, "Align attributes each on a separate line".
To format an XML document, select Edit, Advanced, Format Document on the menu (or type ^e, d).
You can download the Microsoft Visual Studio Tools for the Office System Power Tools here.