[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: content model question
  • From: "Morgan V. Cundiff" <mcundiff@l...>
  • Date: Fri, 5 Apr 2002 11:56:32 -0500 (EST)


Is is possible to create an XML Schema content model for an element
containing mixed content (i.e. text and subelements) and to also specify
the sequence of the text and the subelements? For example an instance
might look like this:

<myelement>textblob
<mysubelement1>textblob1</mysubelement1>
<mysubelement2>textblob2</mysubelement2>
</myelement>

The goal is to constrain the content of <myelement> so that the textblob
must occur first and then be followed by <mysubelement1> and
<mysubelement2>

Thank you for your help.

Morgan Cundiff
Library of Congress




Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member