I created XML file with data how to load that file into the my class. Using I want to display the data on the sprites
loading XML file into the COCOS2D-X using C++ programming
To use the interfaces of libxml2.
Cocos2d-x integrated libxml2 on all platforms.
You can refer to CCSAXParser.cpp in cocos2d-x.