2.2.32 query (1)

The query element specifies the main data connection data adapter that queries a data source for data to populate the main data source. The main data connection MUST specify a data connection to a database or Web service.

If the form template is designed based on a main data connection, as specified by the dataFormSolution attribute of the xDocumentClass element, as defined in section 2.2.20, the main data source XML schema is derived from the XML schema provided by the main data connection. If the form template is not designed based on a main data connection, the main data source XML schema is derived from manual modifications or an external XML schema document.

Parent Elements

xDocumentClass

Child Elements

adoAdapter

queryAction

sharepointListAdapter

webServiceAdapter

xmlFileAdapter

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="query">
   <xsd:complexType>
     <xsd:choice>
       <xsd:element ref="xsf:queryAction"/>
       <xsd:element ref="xsf:adoAdapter"/>
       <xsd:element ref="xsf:webServiceAdapter"/>
       <xsd:element ref="xsf:xmlFileAdapter"/>
       <xsd:element ref="xsf:sharepointListAdapter"/>
     </xsd:choice>
   </xsd:complexType>
 </xsd:element>