Perhaps you should check what is the XML definition.
If you want to read an XML file, I would suggest you to use tinyxml (http://www.grinninglizard.com/tinyxml/) what is an XML parser.
Remember that a plist file is an internal cocos2d-x format. This example does not talk about loading XML files, but loading plist format files in cocos2d-x
Either way I recomend you to have a look at the API I wrote above. It is a good XML parser.
November 10th, 2013 on 3:59 am
Works fine!!! Thanks
November 10th, 2013 on 1:44 pm
Thanks for the comment 🙂
April 6th, 2014 on 1:50 am
This is not proper XML. XML is in hierarchical structure with variant data.
This example is useless for real XML datasets.
April 6th, 2014 on 10:25 am
Perhaps you should check what is the XML definition.
If you want to read an XML file, I would suggest you to use tinyxml (http://www.grinninglizard.com/tinyxml/) what is an XML parser.
Remember that a plist file is an internal cocos2d-x format. This example does not talk about loading XML files, but loading plist format files in cocos2d-x
Either way I recomend you to have a look at the API I wrote above. It is a good XML parser.