Alright, so I'm using XML schema to validate a following type of xml file: (just pretend the parens are actually angled brackets).
<root>
<A>
<B></B>
<C></C>
</A>
</root>
pretty simple -> except the catch is that I also want to have a comment element, which can occur an unbounded number of times in any order (provided that it isn't a comment within another comment). So the following code sample would also be valid:
<root>
<comment />
<A>
<comment />
<B>
<comment />
</B>
<comment />
<C></C>
<comment />
</A>
<comment />
</root>
Initially I had a rigid structure imposed on the initial tree - ie B and C have to appear once, and B must come first. None of the ways I can come up of doing this scale to work on more complex examples. any ideas?
Many thanks