Hack 92 Get the XML ToolboxThis free add-in from Microsoft lets you inspect the XML in a Word document while the document remains open, making it an essential tool for working with XML in Word. The XML Toolbox is a Word plug-in that acts much like a web browser's View Source function. You can view an entire document's WordprocessingML representation without having to save and close it first, or you can view the underlying WordprocessingML for only a partial selection of a document. The Toolbox also has some other handy features for streamlining custom XML solution development in Word. You can download and read an article about it from the following URL: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalkl/odc_office01012004.asp After you install the XML Toolbox, it appears as one of the choices
when you select View Figure 10-5. The XML Toolbox toolbarNext, select XML Toolbox Figure 10-6. The XML Viewer window
When you choose to view just the current selection, Word adds enough
additional XML to make the XML shown in the Viewer a standalone XML
document. For example, if you select just a single word in a Word
document, choose XML Toolbox
While the XML Toolbox is an indispensable learning aid, it leaves out some things from the XML, such as document metadata and spelling errors. When learning the ropes of WordprocessingML, you should also spend some time viewing Word documents saved as XML from other applications, such as a text editor or Internet Explorer. Evan Lenz |