[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: Imposing requiredness on the xsd element
  • From: "Sudheshna Iyer" <sudheshnaiyer@h...>
  • 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/


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member