I'm trying to build a XML Schema for XMLs like that:
Expand|Select|Wrap|Line Numbers
- <book>
- <title>...</title>
- <chapter>...</chapter>
- <chapter>...</chapter>
- <chapter>...</chapter>
- <author>...</autor>
- </book>
Expand|Select|Wrap|Line Numbers
- <book>
- <title>...</title>
- <author>...</autor>
- <chapter>...</chapter>
- <chapter>...</chapter>
- <chapter>...</chapter>
- </book>
My first thoughts were using <xs:all>, but the problem is that <xs:all> only allows elements with maxOccurs=1, so it doesn't fit with <chapter> (that has maxOccurs=unboonded).
Anybody knows a solution or workaround? I'm getting crazy reviewing the XML Schema reference for some solution, but I'm not finding anything :). Please, any help is very welcome!
Regards,
Fermín
PD. Of course I could do something like:
Expand|Select|Wrap|Line Numbers
- <book>
- <title>...</title>
- <author>...</autor>
- <chapters>
- <chapter>...</chapter>
- <chapter>...</chapter>
- <chapter>...</chapter>
- </chapters>
- </book>