简体   繁体   中英

using libxml2 with cocos2d-x

I am new in C++ and cocos2d-x. I need to know how to parse XML with elements and attributes libxml2 in cocos2d-x . I have tried to google but I can't file any exact code example . how exactly are the usage of the libxml2 in cocos?

I found this code from the official site but I don't have any idea how to convert it into cocos code. http://www.xmlsoft.org/examples/reader1.c

I am using XCode for the IDE,.

If you look in CCSAXParser.cpp and CCUserDefault.cpp you will see an example of cocos2d-x using libxml to parse data. Or there is also this solution (I have never tried it).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM