I see your problem.

You dont know the difference between a ruby script and an XML file.

Although the data is obviously useful without the script we cannot
tell what you are doing wrong and help you.

Unless you are expecting us to write this for you, my rates are
reasonable but I require cash upfront from clients who have no clue