How to generate a .plist file in cocos 2d-x

Any one can help me and suggest me for generate a .plist file at run time.
thanks in advance.

.plist is a xml file, you can use libxml or other library to do it.