schema Attribute (dataObject Element)

Microsoft Office InfoPath

Show All Show All

schema Attribute (dataObject Element)

The name of an XML Schema file.

Type

      xsd:string
    

Remarks

The schema attribute is an optional attribute of the dataObject element.

Microsoft Office InfoPath 2003 automatically packages the XML Schema for each secondary data object as part of the form template. An entry is made in the form definition (.xsf) file for the XML Schema file using the files element, and it is the file name that is referenced from the schema attribute of the dataObject element.

Example

The following is an example of the schema attribute as it is used in the dataObject element:

    <xsf:dataObjects>
   <xsf:dataObject 
      name="EmployeeNames" 
      schema="EmployeeNames.xsd" 
      initOnLoad="yes">
      <xsf:query>
         <xsf:adoAdapter 
            connectionString="Provider=Microsoft.Jet.OLEDB.4.0;
               Password=&quot;&quot;;User ID=Admin;
               Data Source=infnwind.mdb;Mode=Share Deny None;
               Extended Properties=&quot;&quot;;..."
            commandText="select [EmployeeID],[LastName],[FirstName] 
               from [Employees] as [Employees]" 
            queryAllowed="yes"
            submitAllowed="yes">
      </xsf:adoAdapter>
			</xsf:query>
		</xsf:dataObject>
	</xsf:dataObjects>