Word 2007 XML Expansion Packs


  • We are writing code to replace sections of a Word 2007 template with data pulled from a data store using the Office Open XML SDK 2.  We have decided to use Custom XML to identify the sections to be replaced.  We would like to be able to change the definition of our schema as needed.  From what I can tell this functionality is supported by XML Expansion Packs, but I can't find any documentation on how to create them.  It seems that the main difference is the existence of a manifest file.  Where can I find documentation for this?  Also, is this the right approach?
    Friday, November 20, 2009 10:28 PM

All replies

  • hi, Tim Murphy

    Thanks for your question.

    First of all, Open XML SDK could help you to your jobs. the XML expansion Packs is considered as custom xml files. You may find how to insert XML Expansion Packs in the following way:
    1. create a file without XML Expansion Packs;
    2. insert a XML expansion packs into the file;
    3. Use the tool DocumentReflector to view the difference between the two files.

    As for hwo to create the manifest file, the following link may be of help:
    Though it is based on Office 2003, the basic ideas are the same.


    Sunday, November 29, 2009 2:37 PM