- From: A. Delrio <adelrio@decadesystems.com>
- Date: Wed, 5 Jun 2002 13:23:00 -0400
- To: <xmlschema-dev@w3.org>
- Cc: "Nell Golding" <nell_golding@hotmail.com>
Hi Nell, If you are refering that there must be content within an element, then I believe you must give the element a type definition as shown in example 1 below. If you are referring that an element name must exist within a document, then by default the element must exist unless you add a minOccurs="0" attribute to the element declaration. See example 2 1. <xsd:element name="MANDATORY_ELEMENT" type="xs:date"/> 2. <xsd:element name="OPTIONAL_ELEMENT" minOccurs="0"/> Andy -----Original Message----- From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]On Behalf Of Nell Golding Sent: Wednesday, June 05, 2002 5:47 AM To: xmlschema-dev@w3.org Subject: Element declararion I am trying to specify some interfaces in Schema and met definite problems. I'll be very thankfull if anybody could help me. My question is, is it possible with a help of schema to declare that an element must NOT be empty? As I searched through schema specification myself I could not find this possibility. Thank you, Nell G. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Received on Wednesday, 5 June 2002 13:23:03 UTC