Hi Andy

Yes absolutely, dom4j preserves the order in which nodes are added to it;
both attributes and elements. So you can reorder things however you wish.

James
----- Original Message -----
From: "Andy Yang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 8:40 PM
Subject: [dom4j-user] Preserving element order in documents


> Hi All,
>
> Hopefully this is a simple question. I did a search on
> the web and surprisingly found nothing that addresses
> this explicitly.
>
> According to the XML Schema definition, defining a
> <sequence> requires element order to be preserved -
> otherwise, it won't validate.
>
> Dom4j preserves the order in which child elements are
> added to a given node right? That's the only way I can
> see it working. From my quick tests this appears to be
> the way that dom4j works, but if someone could quickly
> confirm this, I would greatly appreciate it.
>
> Thanks,
> Andy
>
> ______________________________________________________________________
> Web-hosting solutions for home and business! http://website.yahoo.ca
>
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to