XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
mathan kumarSubject: How to use both xs:sequence and xs:all with in a single element
Author: mathan kumar
Date: 05 Jan 2006 12:18 PM
Originally Posted: 05 Jan 2006 12:16 PM
I am defining a schema with some of the elements that should appear in sequence order and some other elements can appear in any order.how to define it?<br> <br> For eg: I am using this Credit_CN.xsd where inside the DETAIL element I want to define the elements from named "TAG" to "DR_TRAN" in a sequence order (so i have defined them as complex type and marked with xs:sequence tag)and the remaining elements in random order (so i have defined them as complex element and marked with xs:all tag). But i am getting an error as "Invalid schema Unexpected element".<br> <br> Kindly help me in defining a way to use both xs:sequence and xs:all inside an element or a way where we can define some elements in sequence and the other in a random way.


DocumentDataTypeSchema(2).xsd
DataTypeSchema.xsd

DocumentCredit_CN.xsd
Credit_CN.xsd

Posttop
Tony LavinioSubject: How to use both xs:sequence and xs:all with in a single element
Author: Tony Lavinio
Date: 05 Jan 2006 12:32 PM
Once again, if you use the Diagram tab of Stylus Studio, all of this
would be handled for you. You can nest xs:choice within xs:sequence.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

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