2.3.1.7 File Attachment Control

A file attachment control that is not required to contain data and is bound to an XML element with data type set to "xsd:base64Binary", and for which no constraining facets have been set, MUST have the following XSD definition, assuming that the element name is "field1":

 <xsd:element name="field1" nillable="true" type="xsd:base64Binary"/>

A file attachment control that is required to contain data and is bound to an XML element with data type set to "xsd:base64Binary", and for which an xsd:minLength constraining facet has been set, MUST have the following XSD definition, assuming that the element name is "field1":

 <xsd:element name="field1" type="my:requiredBase64Binary"/>
 <xsd:simpleType name="requiredBase64Binary">
     <xsd:restriction base="xsd:base64Binary">
         <xsd:minLength value="1"/>
     </xsd:restriction>
 </xsd:simpleType>

A file attachment control SHOULD be bound to a field (3) with the base64Binary XSD data type, for which any valid constraining facets MAY also be set.