Reading an XML - Writing to a TXT

Hello!

It's been a while since I've programmed in C++, and I need some help. My goal is to read certain values from "map.xml" and then output them to a text file in a specific order. See below.

From this file,
http://www.mediafire.com/?9vfr11lfa4laqbw
I want to read the "name" under each "imgdir/imgdir/imgdir" (so the first three would be "0", "1", "10000") as one string. And for the second I want to read the (2nd) "value" under each imgdir/imgdir/imgdir/string" (so the first three would be "Entrance - Mushroom Town Training Camp", "Upper level of the Training Camp", "Mushroom Town"). I then want both values to be outputted to a text file in the following format:
1
2
3
0 Entrance - Mushroom Town Training Camp
1 Upper level of the Training Camp
10000 Mushroom Town

...and so on.

Could someone help me accomplish this?
Topic archived. No new replies allowed.