XSD serialization format [message #63377] |
Thu, 15 September 2005 13:40  |
Eclipse User |
|
|
|
Is it possible to control the order of attributes when serializing XSD model
to a file?
Currently, I get this serialization:
<xsd:element minOccurs="0" maxOccurs="unbounded" name="Party"
type="PartyType"/>
But for readability, it is much better to reorder attributes as:
<xsd:element name="Party" type="PartyType" minOccurs="0"
maxOccurs="unbounded"/>
Thanks!
Dave Carlson
|
|
|
|
Re: XSD serialization format [message #63466 is a reply to message #63401] |
Fri, 16 September 2005 09:37  |
Eclipse User |
|
|
|
Thanks Ed. That's what I expected, but thought I'd check with you. The XML
spec says that attributes are unordered and DOM complies with that...
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:dgcsmo$ggm$1@news.eclipse.org...
> Dave,
>
> No. DOM is used and DOM doesn't let me control that. It figures
> alphabetical order is best for me. :-(
>
>
|
|
|
Re: XSD serialization format [message #596422 is a reply to message #63377] |
Thu, 15 September 2005 18:30  |
Eclipse User |
|
|
|
Dave,
No. DOM is used and DOM doesn't let me control that. It figures
alphabetical order is best for me. :-(
Dave Carlson wrote:
>Is it possible to control the order of attributes when serializing XSD model
>to a file?
>
>Currently, I get this serialization:
>
><xsd:element minOccurs="0" maxOccurs="unbounded" name="Party"
>type="PartyType"/>
>
>But for readability, it is much better to reorder attributes as:
>
><xsd:element name="Party" type="PartyType" minOccurs="0"
>maxOccurs="unbounded"/>
>
>Thanks!
> Dave Carlson
>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.23910 seconds