The .xml Template File

All unpacked InfoPath form templates have a template.xml file. The template.xml file is, essentially, a sample XML instance document that provides an example of how a permitted XML document can look.

AVOIDING FILE CONFLICTS

When you want to open individual form files, make sure the InfoPath client does not have the form template open in design mode. If the form template is open in InfoPath, the file will be locked and you will be unable to edit it.

Let's look in more detail at the template.xml file extracted from SimpleControls.xsn, shown in Listing 15.1. I have broken the code into short lines for ease of printing.

template.xml IS A SAMPLE DOCUMENT

The template.xml file is only a sample document. So, if the W3C XML Schema ...

Get Microsoft® Office InfoPath™ 2003 Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.