[xsd-users] When present function is created?
wendy f
wendy01142015 at outlook.com
Thu Nov 12 22:24:12 EST 2015
Hello all,
CaseI:
<xs:element name="person">
<xs:complexType>
<xs:sequence>
<xs:element name="child_name" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
CaseII:
<xs:element name="person">
<xs:complexType>
<xs:sequence>
<xs:element name="child_name" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
In caseI, the generated C++ code will support the function 'present'. However, in caseII, the generated C++ code will NOT support the function 'present'.
By default, the value of minOccurs is 1.
Question> Is there a way that we can force the XSD always supports 'present' function?
Thank you
More information about the xsd-users
mailing list