[jdom-interest] Reordering namespace attributes
Elliotte Rusty Harold
elharo at metalab.unc.edu
Mon Jun 16 06:21:00 PDT 2003
At 10:46 AM +0100 6/16/03, Steve Beech wrote:
>The original message and the 'one that works' are shown below. What I want
>to know is: is there anyway I can ensure the namespace attributes are
>created in the order shown in the 'one that works' message instead of the
>original?
Short of writing your serializer, possibly by subclassing JDOM's, no
you can't; nor should you have to. I suspect the problem is not what
you think it is. If it is what you think it is, then the receiving
end of your communication is broken and needs to be fixed. The order
of attributes and namespace declarations is simply not significant in
XML.
--
Elliotte Rusty Harold
elharo at metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA
More information about the jdom-interest
mailing list