Oxygen XML Editor
 
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

Imposing requiredness on the xsd element


  • To: xml-dev@...
  • Subject: Imposing requiredness on the xsd element
  • From: "Sudheshna Iyer" <sudheshnaiyer@...>
  • Date: Wed, 25 Jan 2006 19:13:36 -0500
  • Bcc:

Team,

Can we impose required field concept in xsd? I am looking for the exact 
equivalent of
<!ELEMENT note (to,from?,heading?,body?)>
<!ELEMENT to      (#PCDATA)>
<!ELEMENT from    (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body    (#PCDATA)>

Here "to" is the required element where as "From", "heading" and "Body" are 
optional fields. I don't want to make this requirement imposed on attribute 
in xsd, but I want this as element. How can I achieve this?

Thank you.

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords
xsd