|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Schema constructs
What error message are you getting? (I'm thinking the issue might be non-determinism) Kind Regards, Joe Chiusano Booz | Allen | Hamilton Strategy and Technology Consultants to the World > "James, David" wrote: > > 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 -- Kind Regards, Joseph Chiusano Associate Booz | Allen | Hamilton
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








