Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » How to get declaration in the order defined in XML Schema file
How to get declaration in the order defined in XML Schema file [message #49735] Mon, 02 August 2004 18:09 Go to next message
Joshua Hui is currently offline Joshua HuiFriend
Messages: 23
Registered: July 2009
Junior Member
Hi,

I noticed that XSDSchema.getAttributeDeclarations(),
getAttributeGroupDefinitions(), and getElementDeclarations() all return
the declarations in an alphabetic order, rather than the original order
defined in the XSD file. Is there a way to get those declarations
according to the order provided in the XSD file?

Thanks.

Joshua
Re: How to get declaration in the order defined in XML Schema file [message #49765 is a reply to message #49735] Tue, 03 August 2004 10:52 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Joshua,

XSDSchema.getContents will return the physical declarations contained by
a given schema in source order.


Joshua Hui wrote:

> Hi,
>
> I noticed that XSDSchema.getAttributeDeclarations(),
> getAttributeGroupDefinitions(), and getElementDeclarations() all
> return the declarations in an alphabetic order, rather than the
> original order defined in the XSD file. Is there a way to get those
> declarations according to the order provided in the XSD file?
>
> Thanks.
>
> Joshua
>
Re: How to get declaration in the order defined in XML Schema file [message #589987 is a reply to message #49735] Tue, 03 August 2004 10:52 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Joshua,

XSDSchema.getContents will return the physical declarations contained by
a given schema in source order.


Joshua Hui wrote:

> Hi,
>
> I noticed that XSDSchema.getAttributeDeclarations(),
> getAttributeGroupDefinitions(), and getElementDeclarations() all
> return the declarations in an alphabetic order, rather than the
> original order defined in the XSD file. Is there a way to get those
> declarations according to the order provided in the XSD file?
>
> Thanks.
>
> Joshua
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to get declaration in the order defined in XML Schema file
Next Topic:xsd:any - namespace problem
Goto Forum:
  


Current Time: Wed Apr 24 22:35:39 GMT 2024

Powered by FUDForum. Page generated in 0.03776 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top