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

Attributes ordering

From: Nataraj Ramalingam <Nataraj.Ramalingam@aricent.com>
Date: Sat, 17 Mar 2007 17:26:58 +0530
To: xmlschema-dev@w3.org
Message-ID: <OFE727DF14.3FA55697-ON652572A1.0040406A-652572A1.0041A409@flextronicssoftware.com>
Attributes ordering
Hi,

I am little new to XML. I have a basic doubt in the ordering of attributes 
inside a complex type.

Suppose the XSD file has the following structure.

<xs:complexType name="test">
        <xs:attribute name="a" type="xs:string"/>
        <xs:attribute name="b" type="xs:string"/>
        <xs:attribute name="c" type="xs:string"/>
        <xs:attribute name="d" type="xs:string"/>
        <xs:attribute name="e" type="xs:string"/>
</xs:complexType>

<xs:element name="test" type="test"/>

Can the XML instance have the attributes in any order, or should the order 
of attributes in the instance be only a,b,c,d,e?

I know that the elements ordering can be controlled using "sequence" or 
"all". But i am not sure about the same behavior with attributes.

Could anyone clarify this?

Kind Regards,

Nataraj Ramalingam | Technical Lead 
Email : nataraj.ramalingam@aricent.com
Aricent Communications Software 
www.aricent.com.


***********************  Aricent-Private   ***********************
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of 
the individual to whom it is addressed. It may contain privileged or confidential information and should not be 
circulated or used for any purpose other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly
prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for 
loss or damage arising from the use of the information transmitted by this email including damage from virus."
Received on Sunday, 18 March 2007 20:44:47 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.