how to write a plit array ?

Jun 4, 2013 at 9:33 AM
please do anyone can show me how to write a array like this in PropertyList object ??


<?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>section0</key>
 <dict> 
   <key>key0</key> 
     <dict> 
       <key>name</key> 
       <string>Title</string> 
       <key>type</key> 
       <string>text</string> 
       <key>filter</key> 
       <false/> 
     </dict> 
   <key>key1</key> 
     <dict> 
       <key>name</key> 
       <string>Season</string> 
       <key>type</key> 
       <string>text</string>             
       <key>filter</key> 
       <false/>          
     </dict> 
 </dict> 
</dict>
</plist>"
Jun 5, 2013 at 8:44 AM
What about something like that:


            var data = new PropertyList();
            var section0 = data.AddNewDictionary("section0");
            var key0 = section0.AddNewDictionary("key0");
            var key1 = section0.AddNewDictionary("key1");

            // populate first item with data:
            key0.Add("name", "Title");
            key0.Add("type", "text");
            key0.Add("filter", false);

            // populate second item with data:
            key1.Add("name", "Season");
            key1.Add("type", "text");
            key1.Add("filter", false);