Hemantvc
Hemantvc

Reputation: 2119

parsing Plist file in android

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

Answers (2)

milosevic81
milosevic81

Reputation: 146

You can use xmlwise, its rather simple to use.

Map<String, Object> properties = Plist.fromXml(xmlString);

Upvotes: 6

user180100
user180100

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

Related Questions