[EMAIL PROTECTED] wrote on 08/01/2008 07:08:43 AM:

> The order of _elements_ is guaranteed in any XML API.

Not every XML API preserves the order of elements in the document. For
example the ordering in JAXB follows the schema (or more precisely the Java
annotations) rather than what was in the document. An invalid document
loaded into JAXB objects might have its elements written out in a schema
valid order on serialization.

> The order of _attributes_ is not.
>
> ______________________________________
> "... Three things see no end: A loop with exit code done wrong,
> A semaphore untested, And the change that comes along. ..."
>  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (http://www.ovff.
> org/pegasus/songs/threes-rev-11.html)

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

Reply via email to