Ian Partridge
Usenet Archive
- Joined
- Oct 9, 2003
- Messages
- 5
- Reaction score
- 0
Hi,
I'm having some problems working out how my XML Schema should be constructed. Simply, if I have XML like:
<basetag>
<tag1>foo</tag1>
<tag2>bar</tag2>
<tag1>foo</tag1>
<tag2>bar</tag2>
<tag2>bar</tag2>
<tag1>foo</tag1>
<tag2>bar</tag2>
</basetag>
i.e. unlimited interleaved instances of tag1 and tag2 within basetag, how should I define my Schema to support this? I can't see how <xs:sequence> or <xs:choice> are appropriate in this case...
Any tips greatly appreciated.
Many thanks,
Ian Partridge
I'm having some problems working out how my XML Schema should be constructed. Simply, if I have XML like:
<basetag>
<tag1>foo</tag1>
<tag2>bar</tag2>
<tag1>foo</tag1>
<tag2>bar</tag2>
<tag2>bar</tag2>
<tag1>foo</tag1>
<tag2>bar</tag2>
</basetag>
i.e. unlimited interleaved instances of tag1 and tag2 within basetag, how should I define my Schema to support this? I can't see how <xs:sequence> or <xs:choice> are appropriate in this case...
Any tips greatly appreciated.
Many thanks,
Ian Partridge