OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Imposing requiredness on the xsd element

[ Lists Home | Date Index | Thread Index ]

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/





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS