My question is: when you dynamically construct an XML dom4j object org.dom4j.Document
// Create an xml document Document document = DocumentHelper.createDocument(); and then you dynamically create xml tags on that document object, one by one, the resulting xml document does not preserve the sequentail order of the xml tags in the order in which I created them. So for example I create an xml Document and then I add on the FirstName tag, then the LastName tag and then the Age tag: <Document> <RecordsList> <FirstName>John</FirstName> <LastName>John</LastName> <Age>55</Age> </RecordsList> </Document> But after finishing, I output the resulting xml and the result is a different order, such as for example: <Document> <RecordsList> <LastName>John</LastName> <Age>55</Age> <FirstName>John</FirstName> </RecordsList> </Document> And like I said, the xml ordering is important in order for it to pass the schema validation, because the XSD file specifies that the xml tags need to be in order (i.e. the XSD uses the <sequence> tag to specify the xml tag ordering). --- Edwin Dankert <[EMAIL PROTECTED]> wrote: > I'm really sorry but I don't think that your problem > is caused > by dom4j, would it be possible for you to show us > some > of the offending code? > > Regards, > Edwin > -- > http://www.edankert.com/ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > dom4j-user mailing list > dom4j-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dom4j-user > ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user