Lists Home |
Date Index |
Can we impose required field concept in xsd? I am looking for the exact
<!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?
Donít just search. Find. Check out the new MSN Search!