<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Therefore, we can increase the &quot;type safety&quot; of the XSD by restricting the category of child elements that can be placed in the class element. However, I don&#39;t know how to do this in XSD - any pointers?</blockquote>
<div><br>Assuming you know all the possible elements up front, this is done with a &lt;xs:choice&gt; and/or &lt;xs:sequence&gt;. However, I suspect what you are saying is that there could be elements that aren&#39;t known at the time the XSD is generated.<br>
<br>-Dan</div></div><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br>
<br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>from my email. If you contact me, but don&#39;t hear back for more than a week,<br>
it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters.  Please don&#39;t hesitate to resend a message if<br>you feel that it did not reach my attention.<br>