Sort « XML file « Java I/O Q&A





1. Sort Java List/Map by order in which items are in an XML File    stackoverflow.com

What I'm looking to do is to sorta a Java List or Map in the order the items are in a XML File. For Example I have a list of function names as ...

2. xml file Sorting    forums.oracle.com

i made code like this its not giving any error but not sorting . i think... problem with my logic but .... can u pls modify or suggest something so that i'll be able to complete. public class OrderItemDetail{ public static void main(String[] args) { try{ SAXReader saxReader = new SAXReader(); Document document = saxReader.read("OrderItem.xml"); Element root = document.getRootElement(); List list ...