Forum > C++ > Use XML file in Cocos2d-x?

Use XML file in Cocos2d-x?

By matdennoigi Posted 2012-02-11 08:37 Comments 2
  • Posts: 10

I want to make the XML Doc by XML DOM. In source code of CCUserDefault, it used XML DOM, too. I tried to use the xml function as CCUserDefault like (xmlNewNode, xmlNewDoc…) , but i’ve got errors:

identifier "xmlXXX_function" is undefined

So, how can i use these functions? Thank so much.

  • Posts: 1735
  • Location: Xiamen, China

#1 RE: 2012-02-12 02:42

A compile error or link error? It seems that you link libxml2 failed.

Less is More. Keep Focus.

  • Posts: 10

#2 RE: 2012-02-12 06:24

Compiler Error (VS2010)

Error C3861: 'xmlNewDoc': identifier not found
Loggin to reply

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps