Thanks!
But i still have one problem - i've loaded the XML element type info into the XmlSchemaElement and i've checked the XmlSchemaElement.IsNillable property - the property value was "false". OK, then i've checked another XML elrment of another XML type and the XmlSchemaElement.IsNillable property also was "false". There are two XML elements description below:
<
xs:element name="TypeCd" type="ClassifierItem" minOccurs="0" maxOccurs="1"></xs:element>
<
xs:element name="IssueDate" type="xs:date" minOccurs="0" maxOccurs="1"></xs:element>
No element has xsi:nil attribute and both element types have value "false" of XmlSchemaElement.IsNillable property. BUT! The MS InfoPath shows the "TypeCd" as "can be blank" and "IssueDate" as "cannot be blank". The only difference between two elements is different types. The "TypeCd" according to the custom type "ClassifierItem" defined in the same schema and the "IssueDate" according to the "xs:date" defined in the
http://www.w3.org/2001/XMLSchema
I'm still in the problem! How InfoPath can define if the element cannot be blank and why i cannot?