Design a form based on an existing XML document
When designing a new form based on an existing XML document, you can work with the form in the same way as when you design a new, blank form, including inserting and laying out controls, inserting and modifying fields and groups in the data source, adding data validation and conditional formatting, and publishing the form.
Note When you design a form based on an existing XML document, Microsoft Office InfoPath 2003 creates a data source based on the information in your .xml file. The more detailed your XML document is, the more detailed the resulting data source will be.
- On the File menu, click Design a Form.
- In the Design a Form task pane, click New from XML Document or Schema.
- On the first page of the Data Source Wizard, click Browse.
- In the Open dialog box, browse to the XML document you want to base the form on, and then click Open.
- On the next page of the Data Source Wizard, click Next.
- On the next page of the Data Source Wizard, do one of the following:
- If you want to include an additional XML document or XML Schema in your form, click Yes, click Next, and then repeat steps 3 through 5.
- If you are finished adding XML documents or XML Schemas to your form, click No, and then click Finish.
- In the dialog box that appears, do one of the following:
- To use the values in the XML document to create default data for your form, click Yes. The values stored in the XML document will become the default values for the fields in your form.
- To use only the structure of the XML document and not its values, click No.
- To begin adding controls to the form, right-click a field or group in the Data Source task pane, and then on the shortcut menu, click the control you want to insert.
Note The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more