DR9
09-22-2011, 11:32 AM
Hello,
I have made my console lists by the following method:
Picking each genre I want and cut n pasting that whole genre list into a single big .XML file. This made it easier then hunting and pecking the original full gamesytem.xml file.
What I would like to know since the .XML I created is like this:
<menu>
Action games A-Z
RPG games A-Z
Shooters A-Z
</menu>
This is a short snippet of my Nintendo.xml
now looks like
<game name="Zen - Intergalactic Ninja (USA)" index="" image="z">
<description>Zen - Intergalactic Ninja (USA)</description>
<cloneof></cloneof>
<crc>D8578BFD</crc>
<manufacturer>Konami</manufacturer>
<year>1993</year>
<genre>Platform</genre>
<rating>HSRS - GA (General Audience)</rating>
<enabled>Yes</enabled>
</game>
<game name="Advanced Dungeons & Dragons - DragonStrike (USA)" index="" image="">
<description>Advanced Dungeons & Dragons - DragonStrike (USA)</description>
<cloneof></cloneof>
<crc>2C5908A7</crc>
<manufacturer>Pony Canyon</manufacturer>
<year>1992</year>
<genre>Role-Playing</genre>
<rating>HSRS - GA (General Audience)</rating>
<enabled>Yes</enabled>
</game>
Want to look like
<game name="Advanced Dungeons & Dragons - DragonStrike (USA)" index="" image="">
<description>Advanced Dungeons & Dragons - DragonStrike (USA)</description>
<cloneof></cloneof>
<crc>2C5908A7</crc>
<manufacturer>Pony Canyon</manufacturer>
<year>1992</year>
<genre>Role-Playing</genre>
<rating>HSRS - GA (General Audience)</rating>
<enabled>Yes</enabled>
</game>
<game name="Zen - Intergalactic Ninja (USA)" index="" image="z">
<description>Zen - Intergalactic Ninja (USA)</description>
<cloneof></cloneof>
<crc>D8578BFD</crc>
<manufacturer>Konami</manufacturer>
<year>1993</year>
<genre>Platform</genre>
<rating>HSRS - GA (General Audience)</rating>
<enabled>Yes</enabled>
</game>
How can I sort all the <game name="GAMENAME
by alphabetical order and then resave the file. So in the end I have a full list of games from A-Z and I can re-index the games properly vs having all the games in a random order.
Note this is for the .XML file only, I'm not referring to the HS option where I can turn it on to auto sort.
Thanks!
I have made my console lists by the following method:
Picking each genre I want and cut n pasting that whole genre list into a single big .XML file. This made it easier then hunting and pecking the original full gamesytem.xml file.
What I would like to know since the .XML I created is like this:
<menu>
Action games A-Z
RPG games A-Z
Shooters A-Z
</menu>
This is a short snippet of my Nintendo.xml
now looks like
<game name="Zen - Intergalactic Ninja (USA)" index="" image="z">
<description>Zen - Intergalactic Ninja (USA)</description>
<cloneof></cloneof>
<crc>D8578BFD</crc>
<manufacturer>Konami</manufacturer>
<year>1993</year>
<genre>Platform</genre>
<rating>HSRS - GA (General Audience)</rating>
<enabled>Yes</enabled>
</game>
<game name="Advanced Dungeons & Dragons - DragonStrike (USA)" index="" image="">
<description>Advanced Dungeons & Dragons - DragonStrike (USA)</description>
<cloneof></cloneof>
<crc>2C5908A7</crc>
<manufacturer>Pony Canyon</manufacturer>
<year>1992</year>
<genre>Role-Playing</genre>
<rating>HSRS - GA (General Audience)</rating>
<enabled>Yes</enabled>
</game>
Want to look like
<game name="Advanced Dungeons & Dragons - DragonStrike (USA)" index="" image="">
<description>Advanced Dungeons & Dragons - DragonStrike (USA)</description>
<cloneof></cloneof>
<crc>2C5908A7</crc>
<manufacturer>Pony Canyon</manufacturer>
<year>1992</year>
<genre>Role-Playing</genre>
<rating>HSRS - GA (General Audience)</rating>
<enabled>Yes</enabled>
</game>
<game name="Zen - Intergalactic Ninja (USA)" index="" image="z">
<description>Zen - Intergalactic Ninja (USA)</description>
<cloneof></cloneof>
<crc>D8578BFD</crc>
<manufacturer>Konami</manufacturer>
<year>1993</year>
<genre>Platform</genre>
<rating>HSRS - GA (General Audience)</rating>
<enabled>Yes</enabled>
</game>
How can I sort all the <game name="GAMENAME
by alphabetical order and then resave the file. So in the end I have a full list of games from A-Z and I can re-index the games properly vs having all the games in a random order.
Note this is for the .XML file only, I'm not referring to the HS option where I can turn it on to auto sort.
Thanks!