2.2.1.2.26 xmlFileAdapter

The xmlFileAdapter element specifies the properties of a data adapter that MUST be created to query an XML file for data. The XML file can be located either within the form template (.xsn) file or at an external location.

Parent Elements

dataAdapters

query

Attributes:

fileUrl: This attribute specifies either the URL of an XML file that is not contained in the form template or the name of an XML file that is contained in the form template. It MUST be either an absolute URL or server-relative URL or relative to the form template’s location if it is specifying the location of a file that is not contained in the form template. It MUST start with "x-soln:///" if it is specifying the name of an XML file that is contained in the form template.

name: This attribute specifies the name of the data adapter. The specified name MUST be unique for all data adapters within the form template. If this attribute is not present, its value MUST be interpreted as an empty string.

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

 <xsd:element name="xmlFileAdapter">
   <xsd:complexType>
     <xsd:attribute name="name" type="xsf:xdTitle" use="optional"/>
     <xsd:attribute name="fileUrl" type="xsd:anyURI" use="required"/>
   </xsd:complexType>
 </xsd:element>