How to write xsd sxhema to allow me to miss the top level tag in xsd definition?

Sunday, July 6, 2014

I want an xsd which is valid for both type of xmls:



<caption> <tt> blah </tt> </caption>

and

<tt> blah </tt>


And I tried minOccurs for caption but as it is root is can be minOccurred 0 times, i guess.


So, how to achieve this?







http://ift.tt/1xAtTqv