Hi, Using the jar of the xsd i was able to create an xml file & read it. Now can anyone pls let me know how to sort the xml file in alphabetical order including the parent & its child nodes. My xml file structure is like this:
<country name="India> <state>Goa</state> <state>Rajastan</state> <state>Bhopal</state> </country> <country name="America"> <state>Texas</state> <state>Washington</state> <state>Maryland</state> <state>Alaska</state> </country> Expected Result: ----------------- <country name="America"> <state>Alaska</state> <state>Maryland</state> <state>Texas</state> <state>Washington</state> </country> <country name="India> <state>Bhopal</state> <state>Goa</state> <state>Rajastan</state> </country> Thanks in Advance. Rauf Khan -- View this message in context: http://www.nabble.com/sorting-xml-data-in-alphabetical-order-tp19920246p19920246.html Sent from the Xml Beans - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]