Re: [dom4j-user] Sorting Problems...
Depends on what you want. You just want a list of sorted nodes, or do you want them to be in sorted order in the document? Here's some psudocode that uses insertion sort to build a list of sorted elements: Element main = (Element)document.selectSingleNode("//main"); List sorted = new ArrayList(
[dom4j-user] Sorting Problems...
Hi All, Below is the sample XML and i want to sort it based on "id" attribute that is available in the "key" element. ACTIVITY_TRIG ACTIVITY P