The schema contains a repeating item, note, which has an attribute noteType.
Code: Select all
<xs:element name="note" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>If Notes element exists then it must have an attribute of noteType. Only notes with a noteType of REASONS will be processed</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="noteType" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
But I need to populate note too. e.g.
Code: Select all
<note noteType="REASONS">First note - This is a note </note>
<note noteType="REASONS">Second note - This is a another note </note>
Any help will be appreciated.