← Prev in month ← Prev in thread

Can mixed content be constrained?

From
Costello, Roger L. <>
To
"" <>
Date
2010-03-23T16:56:14Z
ID
<B8E3C825-B380-4A7F-91A9-DA0C6333AAD5@mimectl>
Thread
Can mixed content be constrained?
Hi Folks,
 
Mixed content permits strings to be interspersed with elements. For example, this <Body> element has mixed content:
 
<Body>
    Dear Sirs:
         This is to inform you that we <emp>really</emp>
         like your product.
</Body>
 
It is declared in XML Schemas like this:
 
<element name="Body">
    <complexType mixed="true">
        <element name="emp" minOccurs="0" maxOccurs="unbounded" type="..." />
    </complexType>
</element>
 
Can the string portion (e.g., Dears Sirs: This is to ...) of the mixed content be constrained? Suppose I want to constrain the string portion within <Body> to be less than 200 characters, how would that be done?
 
/Roger
← Prev in month ← Prev in thread