Home Page › Forums › BizTalk 2004 – BizTalk 2010 › how to define Required Field in Flat File Schema? › Re: how to define Required Field in Flat File Schema?
November 7, 2006 at 2:05 AM
#16339
The minOccurs attribute only checks for the existence of the node, not the content.
To create a constraint against the node content you need to derive your own types
e.g.
<element name="EmailAddress type="non-empty-string"/>
<simpleType name='non-empty-string'>
<restriction base='string'>
<minLength value='1'/>
</restriction>
</simpleType>