我正在尝试解析android上的plist,但我试图导入几个库,但它们都无法编译。
这是要解码的plist。 http://www.ctbsolutions.com.my/rapidpg/eta.aspx?bid=B0377
<plist version="1.0">
<array>
<dict>
<key>busstop</key>
<string>Sek Men Chung Ling (P)</string>
<key>busstopID</key>
<string>2/A/JAYI12</string>
<key>busstopLat</key>
<string>5.40515</string>
<key>busstopLong</key>
<string>100.29390</string>
<key>details</key>
<array>
<dict>
<key>arrivingTime</key>
<string>5 mins</string>
<key>routeLat</key>
<string>5.41690</string>
<key>routeLong</key>
<string>100.30914</string>
<key>routeNumber</key>
<string>306</string>
<key>toLocation</key>
<string>Hospital P.Pinang</string>
</dict>
<dict>
<key>arrivingTime</key>
<string>7 mins</string>
<key>routeLat</key>
<string>5.41386</string>
<key>routeLong</key>
<string>100.32806</string>
<key>routeNumber</key>
<string>203</string>
<key>toLocation</key>
<string>Pejabat Pos Ayer Itam</string>
</dict>
<dict>
<key>arrivingTime</key>
<string>7 mins</string>
<key>routeLat</key>
<string>5.41377</string>
<key>routeLong</key>
<string>100.32803</string>
<key>routeNumber</key>
<string>502</string>
<key>toLocation</key>
<string>Hub Pekan Genting</string>
</dict>
<dict>
<key>arrivingTime</key>
<string>At Terminal Jetty 1</string>
<key>routeLat</key>
<string>5.41422</string>
<key>routeLong</key>
<string>100.34219</string>
<key>routeNumber</key>
<string>203</string>
<key>toLocation</key>
<string>Terminal Jetty 1</string>
</dict>
<dict>
<key>arrivingTime</key>
<string>At Terminal Jetty 1</string>
<key>routeLat</key>
<string>5.41491</string>
<key>routeLong</key>
<string>100.34256</string>
<key>routeNumber</key>
<string>502</string>
<key>toLocation</key>
<string>Terminal Jetty 1</string>
</dict>
</array>
</dict>
</array>
</plist>
我已经完成了在线获取数据并将其保存在String中的部分。但是没有关于如何对此进行解码的示例,或者至少所有示例都太旧而无法使用。