Book a Demo

Author Topic: Order of Elelements in Generated XSD  (Read 12690 times)

rkw

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Order of Elelements in Generated XSD
« on: October 23, 2008, 01:30:43 am »
Is there any way to affect the order that elementss are generated in the XSD? The order seems random to me.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Order of Elelements in Generated XSD
« Reply #1 on: October 23, 2008, 03:23:40 pm »
My guess is that it's done in Z-order. Easily tested: right-click an element, Z-order > Send to Bottom, and re-generate XSD. The element at the bottom of the Z-order should appear first in the generated XSD.
« Last Edit: October 24, 2008, 12:47:56 pm by KP »
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Order of Elements in Generated XSD
« Reply #2 on: October 24, 2008, 12:02:12 pm »
Quote
My guess is that it's done in Z-order. Easily tested: right-click an element, Z-order > Send to Bottom, and re-generate XSD. The element at the bottom of the Z-order should appear first in the generated XSD.
????

Please Neil (and all other Sparxians)...  DON'T guess! - find out and let us know...

We, users, often HAVE to guess, since we don't have access to the source and designs.  But it's an entirely different proposition for the supplier...

As RKW implies (and I've previously impressed on Sparx via other bug reports) guaranteeing consistency of ordered output is vital to being able to conduct serious comparison (and testing).

Paolo
« Last Edit: October 24, 2008, 12:08:33 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Order of Elements in Generated XSD
« Reply #3 on: October 24, 2008, 12:19:00 pm »
Quote
Please Neil (and all other Sparxians)...  DON'T guess!
I'm going to disagree with you on that one.

Quote
find out and let us know...
On receipt of a support request through the normal channels, I'm sure somebody will be able to find the time to do that.
« Last Edit: October 24, 2008, 12:49:25 pm by KP »
The Sparx Team
[email protected]