我想将 plist 读入我的应用程序。我想尝试创建一棵树。
plist文件内容:
<plist version="1.0">
<array>
<dict>
<key>Name</key>
<string>Test Webservice</string>
<key>child</key>
<array>
<dict>
<key>child</key>
<array>
<dict>
<key>child</key>
<array>
<dict>
<key>id</key>
<integer>4291</integer>
<key>name</key>
<string>1.1.1</string>
</dict>
<dict>
<key>id</key>
<integer>4292</integer>
<key>name</key>
<string>1.1.2</string>
</dict>
</array>
<key>id</key>
<integer>4290</integer>
<key>name</key>
<string>1.1</string>
</dict>
<dict>
<key>child</key>
<array>
<dict>
<key>id</key>
<integer>4294</integer>
<key>name</key>
<string>1.2.1</string>
</dict>
</array>
<key>id</key>
<integer>4293</integer>
<key>name</key>
<string>1.2</string>
</dict>
</array>
<key>id</key>
<integer>4287</integer>
<key>name</key>
<string>1</string>
</dict>
<dict>
<key>child</key>
<array>
<dict>
<key>child</key>
<array>
<dict>
<key>child</key>
<array>
<dict>
<key>id</key>
<integer>4297</integer>
<key>name</key>
<string>2.1.1.1</string>
</dict>
</array>
<key>id</key>
<integer>4296</integer>
<key>name</key>
<string>2.1.1</string>
</dict>
</array>
<key>id</key>
<integer>4295</integer>
<key>name</key>
<string>2.1</string>
</dict>
</array>
<key>id</key>
<integer>4288</integer>
<key>name</key>
<string>2</string>
</dict>
<dict>
<key>id</key>
<integer>4289</integer>
<key>name</key>
<string>3</string>
</dict>
</array>
<key>id</key>
<integer>4286</integer>
</dict>
</array>
</plist>