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 tu...@employease.com on 2001/03/28 22:37:07 UTC

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

Yes
Use type="xsd:boolean"
example
	
<xsd:element name = "secured" type = "xsd:boolean"/> 

-----Original Message-----
From: Rajan Gupta [mailto:rgupta99_1999@yahoo.com]
Sent: Wednesday, March 28, 2001 3:33 PM
To: xerces-j-user@xml.apache.org
Subject: 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