Closed xdeng closed 10 years ago
Hi, sorry, but your Englisch is very bad so we can hardly understand what you want. It would be good if you either provide a concrete example and especially code or write everything in Chinese. Perhaps an online translator can help. Thanks and appreciate your contribution.
The part you are referring to has a very handy comment above:
//These nodes should not be handled by users
static plist_t plist_new_key(const char *val)
example
<key>Dataclasses</key>
<array>
<key>Media</key>
<string>Keybag</string>
<key>Ringtone</key>
</array>
就像这个plist 里面用到了 plist_t plist_new_key 这个函数
Thank for you explanation. The example you provided shows an invalid plist file. Fortunately, both Apple's implementation and libplist correctly parse and "fix" the bad key nodes. If you convert this example to a binary plist and then back, you'll see that the key nodes are actually turned into string nodes to properly comform to the plist DTD. Thus we don't see a valid reason presented to export plist_new_key() in the public API. If you have a good case we're glad to be proven wrong.
OMG O,O
I see
thank you
when i sniff itunes sync ringtone, i found that above example , so that i have to create a key no value of the array as same as what itunes did.
plist.c 105 static plist_t plist_new_key(const char *val);
in array use
example
book mark plist