I have been working on a script that do things with a XML file. Specifically a LaunchBox platform file. I have a little script that opens up information about a specific game. Each game is presented within <Game></Game> and I know that I can use something like the following to open the 10th game.
Code: Select all
CurrentNode := launchboxxml.selectSingleNode("//Game[10]/Title/text()")
But sometimes I call the game by information, like the title or ID numbers etc, such as:
Code: Select all
CurrentNode := launchboxxml.selectSingleNode("//Game/Title[text()='Home Alone']")