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 ...