• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Word 2003 XML Hacks > 90. Get a Command-Line XML Processor

Get a Command-Line XML Processor

Here’s a rundown of the tools you’ll need to work with the Word XML shown throughout this chapter.

When running these hacks, you’ll need a command-line processor, an XSLT processor that runs from a DOS command prompt.

You can read about and download Microsoft’s own command-line XSLT processor, msxsl.exe, at this URL:

http://www.microsoft.com/downloads/details.aspx?FamilyId=2FB55371-C94E-4373-B0E9-DB4816552E41&displaylang=en

Tip

After you download msxsl.exe, move it to the C:\Windows folder so you can run it from a DOS command prompt within any folder on your system.

The libxml project (hosted at http://www.xmlsoft.org) houses some quite useful command-line utilities for XML processing. Native Windows binaries for each of the libxml tools are available at http://www.zlatkovic.com/libxml.en.html. One particularly convenient tool in the libxml suite is the xmllint command. Its --format option, which inputs an XML document and outputs a printed version of it (adding line breaks and indentation), is an excellent tool for learning WordprocessingML and for helping to author stylesheets that create Word documents.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint