[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Schema constructs


schema constructs
Title: Schema constructs

I am looking at the possibility of using xml schema to define data interchange between organisations and as a means of validating the content of the xml data. Due to my limited knowledge of schema structures (and my inability to interpret part of the w3c primer) I cannot get a complexType element to pass the schema syntax check using the XSV validator.

I want to define a complexType element that always first contains a particular simpleType element, followed by one or more of a number of other simpleType elements. I have tried using a combination of <sequence> and <all> but without success. Typical entries within the xml file might be:

<modify>

  <tagname>FT123<\tagname>

  <lowscale>0.0</lowscale>

</modify>

<modify>

  <tagname>LT345</tagname>

  <hiscale>200.0</hiscale>

  <hialarm>190.0</hialarm>

</modify>

In this case, the element <tagname> must always be present but a range of parameters associated with that tagname could be modified. I can define the simpleType elements, including their restrictions, and define complexType elements for adding and deleting tags but can anyone point me in the right direction for defining the above structure in my schema?

David James



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.