在Android中解析Apple Plist文件

时间:2011-08-18 14:13:23

标签: android

我有onle应用程序,我必须解析plist文件。我没有找到任何有用的链接,因为我有以下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>

请给我一些解决方案

2 个答案:

答案 0 :(得分:2)

使用SAXParser将其解析为xml。你应该能够找到很好的教程。

答案 1 :(得分:1)

如果你仍然需要它。 也许你可以使用Android PList Parser,是Sax-Based。