Sorting by type name won't work for me, that will cause backward compatibility 
issues for me. 

I understand the order of types might not be gurantteed in a sense that it 
might not be the same as presented in the schema itself.  But is it expected 
that the same piece of code (complexTypeRegistry) might return types in 
different order in different platforms?

Thanks!
Gordon


________________________________
From: David Bertoni <[email protected]>
To: [email protected]
Sent: Tue, February 2, 2010 5:23:55 PM
Subject: Re: RefHashTableOfEnumerator returns me elements in different order 
for different platforms

On 2/2/2010 11:02 AM, Gordon Brown wrote:
> Hi All,
> I am having a perplexing problem using Xerces 3.0 to parse an XML with a
> reference to its XML schema. Basically, the schema defines an abstract
> complex type and several derived types (using extension or restriction).
> I built the Xerces library by myself (in different platforms), and I ran
> the same problem in different platforms (for example, windows 32 bit and
> windows 64 bit). What I noticed is that the order of elements (in this
> case derived complex types) is different in windows 32 bit from windows
> 64 bit! Is this a known issue or I did something wrong?
> I am attaching my schema here.
> Thanks much in advance!
I'm not sure there's any guarantee for the order of complex types in the 
grammar.

If you want them in a particular order, you could always sort them by type 
name. Will that work for your purposes?

Dave



      

Reply via email to