

This will open the XML Mapping Pane on the right side of the document. On the Developer tab, click on XML Mapping Pane. Details: How to: Show the Developer Tab on the RibbonĬreate a new Word document (or use an existing Word document) which will be your template for document generation. Make sure the Developer tab is enabled on your copy of Word. Save your sample XML file to any location so that it can be imported to the template you are about to create. Note 2: The xmlns attribute can contain literally anything you want and it doesn't have to be a URL starting with http. XML file(s) with real data in this same format can later be applied when generating Word document(s) from the template. Note 1: This is will be just a sample XML to create your Word template.
.png)
This is the value in field3 from the XML file This is the value in field2 from the XML file This is the value in field1 from the XML file For testing I didn't have repeating sections, pictures etc. Preferably start with a less complicated version to get the hang of it.

Part 1: Create your template document for document generation
