Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports type #1

Open
amitguptagwl opened this issue Oct 5, 2021 · 0 comments
Open

Supports type #1

amitguptagwl opened this issue Oct 5, 2021 · 0 comments
Labels

Comments

@amitguptagwl
Copy link
Member

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]+@schoolname.org" 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>
@amitguptagwl amitguptagwl added the good first issue Good for newcomers label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant