Okay...I need help !
I have a XML file named "abc.xml" as follows.
#########################################
<?xml version="1.0" encoding="UTF-8"?> <system> <header></header> <class> <name>Eight</name> <strength>8</strength> </class> <class> <name>Four</name> <strength>4</strength> </class> <class> <name>Ten</name> <strength>10</strength> </class> <class> <name>One</name> <strength>1</strength> </class> <footer></footer> </system>
##############################################
Now I want to create another XML file named "xyz.xml" which is sorted on the basis of "strength count". And the new XML file should look like this.
##############################################
<?xml version="1.0" encoding="UTF-8"?> <system> <header></header> <class> <name>One</name> <strength>1</strength> </class> <class> <name>Four</name> <strength>4</strength> </class> <class> <name>Eight</name> <strength>8</strength> </class> <class> <name>Ten</name> <strength>10</strength> </class> <footer></footer> </system>
##############################################
Any idea how can it can be done.
Thanks in advance!
Regards,
Cherry
Code tags added by GrandFather
In reply to Sort n Create XML by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |