Add an XML Schema or XML document to the data source

Microsoft Office InfoPath 2003

Show All Show All

Add an XML Schema or XML document to the data source

When designing a form, you can import an XML Schema or the structure of an XML document. This results in a set of fields and groups (as defined by the imported XML document or XML Schema) being added to a specified group in the data source.

  1. In design mode, if the Data Source task pane is not visible, click Data Source on the View menu.
  2. In the Data Source task pane, right-click the group to which you want to add the XML Schema or XML document, and then click Add on the shortcut menu.

    Note  If your form uses more than one data source, click Main in the Data source list. You cannot add an XML document or XML Schema to a secondary data source.

  3. In the Type list, click Complete XML Schema or XML document.
  4. On the first page of the Data Source Wizard, click Browse.
  5. In the Open dialog box, browse to the XML document or XML Schema, and then click Open.
  6. In the Data Source Wizard, click Next.
  7. In the Data Source Wizard, do one of the following:
    • If you want to include an additional XML Schema or XML document in your form, click Yes, click Next, and then repeat steps 4 through 6.
    • If you are finished adding XML documents or XML Schemas to your form, click No, and then click Finish.
  8. If a dialog box appears asking whether to use the values in the .xml file as the default data in your form, 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.

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