My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
CodeBackpackPlist  
CLR implementation of the property list data structure and XML serialization compatible with Apple's plist version 1.0.
Updated Feb 4, 2010 by pre...@gmail.com

Introduction

FYI, here's the DTD for Apple Plist 1.0.

Now, to the code. This ...

using (PropertyListWriter writer = new PropertyListXmlWriter(Console.Out))
{
  PropertyList plist = new PropertyList();
  plist["allowOnion"].Bool = true;
  plist["volume"].Int = 42;
  plist["name"].String = "Jean-Baptiste Emanuel Zorg";
  plist.Save(writer);
}

... produces:

<!-- DTD stuff omitted -->
<plist version="1.0">
  <dict>
     <key>allowOnion</key>
     <true />
     
     <key>volume<key>
     <integer>42</integer>

     <key>name</key>
     <string>Jean-Baptiste Emanuel Zorg</string>
  </dict>
</plist>

Sign in to add a comment
Powered by Google Project Hosting