简体   繁体   English

在Android中解析Apple Plist文件

[英]Parse Apple Plist files in android

I have onle application in which i have to parse plist files. 我有一个应用程序,我必须解析plist文件。 I dont found any usefull link for that I have following plist file. 我没有找到任何有用的链接,因为我有以下plist文件。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com        
 /DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>
<key>About The Firm</key>
<array>
    <string>Firm Details</string>
    <string>Verdicts</string>
    <string>Read Our Disclaimer</string>
</array>
<key>Attorneys</key>
<array>
    <string>Jerrold S. Parker</string>
    <string>Herbert L. Waichman</string>
    <string>Andres F. Alonso</string>
    <string>Jordan L. Chaikin</string>
    <string>Raymond C. Silverman</string>
    <string>Brett A. Zekowski</string>
    <string>Fred R. Rosenthal</string>
    <string>David B. Krangle</string>
    <string>Douglas A. Kugal</string>
    <string>Melanie H. Muhlstock</string>
    <string>Herman Badillo</string>
    <string>Jay L. T. Breakstone</string>
    <string>Michael R. Bluman</string>
    <string>Daniel C. Burke</string>
    <string>Peter J. Cambs</string>
    <string>Gary P. Falkowitz</string>
    <string>April S. Goodwin</string>
    <string>Michael Hugo</string>
    <string>James G. Kapralos</string>
    <string>Christina J. Kazepis</string>
    <string>Brett R. Leitner</string>
    <string>Matthew J. McCauley</string>
    <string>Allan M. Silverstein</string>
    <string>Lauren B. Sutton</string>
    <string>Justin Varughese</string>
</array>
<key>Disclaimer</key>
<array>
    <string>Read Our Disclaimer</string>
</array>
<key>Practice Areas</key>
<array>
    <string>Auto Accidents</string>
    <string>Defective Drugs</string>
    <string>Defective Medical Device</string>
    <string>Nursing Home Abuse</string>
</array>

Please give me some solution for that 请给我一些解决方案

Use SAXParser to parse it as xml. 使用SAXParser将其解析为xml。 You should be able to find good tutorials for that. 您应该能够为此找到好的教程。

If you still need it. 如果您仍然需要它。 Maybe you can use Android PList Parser , is Sax-Based. 也许您可以使用基于Sax的Android PList Parser

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM