parsing Plist file in android

后端 未结 2 1517
别跟我提以往
别跟我提以往 2020-12-20 06:24

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

相关标签:
2条回答
  • 2020-12-20 07:23

    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
    
    0 讨论(0)
  • 2020-12-20 07:24

    You can use xmlwise, its rather simple to use.

    Map<String, Object> properties = Plist.fromXml(xmlString);
    
    0 讨论(0)
提交回复
热议问题