Reading from plist file

Hi all,

I migrated from Irrlicht to Cocos2d-x and for last 2 days I have problem.
I have this test.plist file:

`<?xml version="1.0" encoding="UTF-8"?>

Title Sample Profile `

and my code looks like this:

`CCDictionary *plistDictionary = CCDictionary::createWithContentsOfFile(“test.plist”);

int count = plistDictionary->allKeys()->count(); = 1 witch means that previous line did job just fine

const CCString* str = plistDictionary->valueForKey(“Title”); – is always empty!`

Also when I change plist file to this:

`<?xml version="1.0" encoding="UTF-8"?>

Title2 Title Sample Profile `

And try with this code:

`CCDictionary *plistDictionary = CCDictionary::createWithContentsOfFile(“test.plist”);

int count = plistDictionary->allKeys()->count(); = 1 witch means that previous line did job just fine

// Open Dictionary
CCDictionary *miniDictionary = (CCDictionary *) plistDictionary->objectForKey(“Title2”); – It always fails! miniDictionary = 0x00000000

const CCString* str = miniDictionary->valueForKey(“Title”); – is always empty!`

Where I am doing wrong?

Thanks in advance.

Nevermind… I wrote multi platform ini file parser which I will use instead of plist.

Videos covering PLIST files PLIST Video Tutorial