You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Rajan Gupta <rg...@yahoo.com> on 2001/03/28 22:33:10 UTC

XMLSchema:Can we specify a restriction on the content for an element

Hi! All,
Is it possible to specify the content of an element e.g.
<MyTest>
  <secured> true </secured>
</MyTest>

I want to make sure that only true or false can appear as the content of
the element secured. Is it possible to do that using schemas. 

Thanks in advance,
Rajan


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org