Defines an XML Schema for a form.
|location||(Required attribute) Contains the namespace Uniform Resource Identifier (URI) and location (a Uniform Resource Locator (URL), relative to the form definition (.xsf) file), and delimited by a white space, of the .xsd file defining the XML Schema.|
|rootSchema||(Optional attribute) Identifies an XML Schema as the top-level schema of the form being filled out.|
The documentSchema element is a required element of the documentSchemas element. One documentSchema element is present for each declared XML Schema in the form.
Microsoft Office InfoPath 2007 includes all XML Schemas in the form template and modifies the schema references in the .xsd files to be relative path names. If a form's underlying XML document contains references to multiple XML Schemas, they are listed with separate documentSchema elements and the top-level XML Schema has its rootSchema attribute set to "yes".
If an XML Schema file contains references to other XML Schema files using the include or import settings, those referenced files do not have to be listed in the documentSchemas element. However, they must be included in the form template with their references changed to relative file names.
The following is an example of the documentSchema element: