Reputation: 2119
In my project parsing plist file using android. I have downloaded so many example from the internet and also shown the stack overflow answer.
but i can not parse my plist file .
please tell me how to start plist parsing in droid?
Upvotes: 1
Views: 5141
Reputation: 146
You can use xmlwise, its rather simple to use.
Map<String, Object> properties = Plist.fromXml(xmlString);
Upvotes: 6
Reputation:
There's a parser lib named android-plist-parser.
Sample code (from the project tests):
PListXMLHandler handler = new PListXMLHandler();
parser.setHandler(handler);
parser.parse(/* plist content as String */);
PList actualPList = ((PListXMLHandler) parser.getHandler()).getPlist();
// use actualPList
Upvotes: 3