I'm trying to sort nodes in an xml file, each node contains a little over 300 fields, and so my question is, is there a way to sort these nodes other than the examples I've seen for nodes with only a few fields? like in the following example: sort the xml elements in java
In my case this would be impractical, but if there is no way around it I would have to do it this way.
I would like to sort it by ORDER_LINE
<HEADER>
<CARTON>
</CARTON>
<CARTONDETAIL>
<WH>WHS01</WH>
<OWN>ClientID</OWN>
<ORD>1035178</ORD>
<RELEASE_NUM>1</RELEASE_NUM>
<ORDER_LINE>11</ORDER_LINE>
<TRUCK>0242009025</TRUCK>
<ORDERING>3</ORDERING>
<TRAILER_ID/>
300 more element.....
</CARTONDETAIL>
<CARTONDETAIL>
Elements
</CARTONDETAIL>
</HEADER>
Thanks for any help