Design a form based on an existing XML Schema

Microsoft Office InfoPath

Show All Show All

Design a form based on an existing XML Schema

When designing a new form based on an existing XML Schema (.xsd) file, you can work with the form in many of the same ways as when you design a new blank form, including inserting and laying out controls, adding data validation and conditional formatting, and publishing the form.

The new form will automatically re-use the data validation of the existing XML Schema.

  1. On the File menu, click Design a Form.
  2. In the Design a Form task pane, click New from Data Source.
  3. On the first page of the Data Source Setup Wizard, click XML Schema or XML data file, and then click Next.
  4. On the second page of the Data Source Setup Wizard, click Browse, and then, in the Open dialog box, browse to and select the XML Schema you want to base the form on.
  5. In the Data Source Setup Wizard, click Finish.
  6. 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.

Notes

Because existing XML Schemas can be more restrictive than new blank forms, the following limitations apply:

  • You cannot automatically create the data source when inserting controls.
  • You cannot modify existing fields or groups in the data source.
  • Depending on the schema, you might not be able to add fields or groups to part or all of the data source.