extract the xml data values in the specified format using C++ code

Hi everyone,

Can some one please help me how to extract the data values from the following XML file using C++ code.

The attached txt file contains the xml format.

From the example shown in the txt file, we can observe two types of "CfgType"(Ane Justin and Jessica Sis). Under each "CfgType" there are different "MachineModel" and under that "ModelNo" and followed by "ScreenResolution".

Now, the output should be shown as follows on the console window:

Ane Justin

2345678
17" LCD
1024*768
60
800*600
60
19" LCD
1024*768
60
800*600
60

0789456
17" LCD
1024*768
60
800*600
60
19" LCD
1024*768
60
800*600
60

Jessica Sis

456789
17" LCD
1024*768
60
800*600
60
19" LCD
1024*768
60
800*600
60

345678
17" LCD
1024*768
60
800*600
60
19" LCD
1024*768
60
800*600
60

Could some one please help me in showing the output as shown above...
Many Thanks...
[1349 byte] By [sabitha] at [2007-11-20 11:38:11]