-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
For the complex XML where some object structures are repeated, we should be able to define the type and use it to define tags of this type;
Eg
<?xml version = "1.0"?>
<students nillable="false">
<:type>
<name minLength="3" maxLength="10" ></name>
<subject>
<name pattern="math|hindi|english|science|history"></name>
<score type="positiveDecimal"></score>
</subject>
<:type>
<student repeatable minOccurs="1">
<:a>
<id length="6"></id>
</:a>
<firstname type="name" nillable="false"></firstname>
<lastname type="name" nillable="false"></lastname>
<nickname type="name" ></nickname>
<email pattern="[a-z0-9][email protected]" nillable="false"></email>
<age type="positiveInteger" min="9" max="19"></age>
<contact>
<phone length="10"></phone>
</contact>
<gender nillable="false" ></gender>
<marks>
<subject repeatable type="subject" minOccurs="5" maxOccurs="6" ></subject>
</marks>
</student>
</students>