Apple Plist Format.

Is a data format for the serialization of associative arrays.

Simple Format

This format is designed to be read by humans and to be changed manually. It is used in order to describe the version properties.

Syntax

Data TypeDisplay
String"an example string"
Array("a", "b", "c")
Dictionaries/associative Arrays
{
    "key" = "value";
    ...
}

 

Example:

{
	"name" = "Hans Dampf";
	"address" = {
		"street" = "Irrweg 42";
		"place" = "Irgendwo";
		"postal code" = "77777";
	};
	"shopping cart" = (
		"id42",
		"id4711",
		"id0815"
	);
} 

 

XML

DTD

 see: http://www.apple.com/DTDs/PropertyList-1.0.dtd

Example

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>name</key>
	<string>Hans Dampf</string>
	<key>anschrift</key>
	<dict>
		<key>strasse</key>
		<string>Irrweg 42</string>
		<key>ort</key>
		<string>Irgendwo</string>
		<key>plz</key>
		<string>77777</string>
	</dict>
	<key>warenkorb</key>
    <array>
    	<string>id42</string>
       	<string>id4711</string>
	   	<string>id0815</string>
    </array>
</dict>
</plist>