order of attributes when writing a schema [message #52135] |
Thu, 02 September 2004 00:03 |
Eclipse User |
|
|
|
Originally posted by: gj.puredge.com
Is there a particular order of element attrinutes when writing out a schema.
For example, an element gets written as:
<xsd:element minOccurs="0" maxOccurs="1" name="NewField" type="xsd:string"/>
If I edit the xsd file and change the order, name first for example, it will
be written in that same order once I load it again and re-save.
Is there a way to control this?
Thanks
Gary
|
|
|
Re: order of attributes when writing a schema [message #52163 is a reply to message #52135] |
Thu, 02 September 2004 10:08 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Gary,
I believe that the underlying DOM typically sorts the attributes
alphabetically and serializes them that way. I've found it annoying
too, but I've seen no way around it. If anyone does, I'd be interested.
Gary J wrote:
>Is there a particular order of element attrinutes when writing out a schema.
>For example, an element gets written as:
><xsd:element minOccurs="0" maxOccurs="1" name="NewField" type="xsd:string"/>
>
>If I edit the xsd file and change the order, name first for example, it will
>be written in that same order once I load it again and re-save.
>
>Is there a way to control this?
>
>Thanks
>
>Gary
>
>
>
>
|
|
|
Re: order of attributes when writing a schema [message #591277 is a reply to message #52135] |
Thu, 02 September 2004 10:08 |
Ed Merks Messages: 33236 Registered: July 2009 |
Senior Member |
|
|
Gary,
I believe that the underlying DOM typically sorts the attributes
alphabetically and serializes them that way. I've found it annoying
too, but I've seen no way around it. If anyone does, I'd be interested.
Gary J wrote:
>Is there a particular order of element attrinutes when writing out a schema.
>For example, an element gets written as:
><xsd:element minOccurs="0" maxOccurs="1" name="NewField" type="xsd:string"/>
>
>If I edit the xsd file and change the order, name first for example, it will
>be written in that same order once I load it again and re-save.
>
>Is there a way to control this?
>
>Thanks
>
>Gary
>
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02925 seconds