[
Lists Home |
Date Index |
Thread Index
]
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
|