are you saying that the instance has to have some mandatory text content?
if so look at a minLength restriction on the element type in the schema e.g.
<xsd:simpleType name="PopulatedStringType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
but remember that an element using this type would allow <mandatory>
</mandatory>
you could further restrict the string with a pattern to say that the content
must not be all white space
Colin
"Chris West" <ch****@memex.com> wrote in message
news:bd**********@mxgate.memex.co.uk...
I have an schema that defines an element as mandatory, but I also want the
XML instance to have some content for that mandatory element.
I can use a regular expression to guarantee content, but I'm interested to
know if there is another way to achieve this (an attribute setting
perhaps)?
Thanks
Chris