xml - Can XSD extension re-order elements? -


i want extend type in xml schema, this:

<complextype name="alieninfo">   <complexcontent>     <extension base="personalinfo">       <sequence>         <element name="planet" type="xsd:string"/>       </sequence>     </extension>   </complexcontent> </complextype> 

where

<complextype name="personalinfo">   <sequence>     <element name="name" type="xsd:string" />     <element name="age" type="xsd:int" />   </sequence> </complextype> 

but want change order of constituent elements. say, have planet before name , age. possible?

deriving types extension cannot used change order of elements in base type:

when complex type derived extension, effective content model content model of base type plus content model specified in type derivation. furthermore, 2 content models treated 2 children of sequential group.

i have found concerns regarding element ordering -- allowing order or changing existing order -- unnecessary in end. suggest if extension works achieve goal, don't worry changing order of elements in base type.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -