Parse .plist file

You must Login before you can answer or comment on any questions.

Instead of having a .xml or a .json file, i have to read and parse a .plist file. I need to parse this .plist because i am using this one from another project.

I tried to use the same way as i did for xml but it did not work.

Is there a solution to my problem or do i have to convert this file into xml or json ?

Thanx

2 Answers

This maybe? https://github.com/pugetive/plist_parser

You can add an attribute id to the tags such as:

<key>bundle-version</key>
<string id='version'>0.7</string>
This way, you can find values in the plist file by id, such as:
this.responseXML.getElementById("version").firstChild.nodeValue;
Blessings!

Eric

Your Answer

Think you can help? Login to answer this question!