Element order in XML is very important and dom4j *does* write out the elements in the order you have specified them.
I assume that there is a problem with the way you add the elements, please check your code. Kind regards, Edwin -- http://www.edankert.com/ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user