plist-0.0.5: Generate and parse Mac OS X property list format

Safe HaskellNone
LanguageHaskell98

Text.XML.Plist

Description

Library for generation and parsing Mac OS X plist format

Synopsis

Documentation

data PlObject Source

Data type that represents plist object

Constructors

PlString String

string

PlBool Bool

bool

PlInteger Int

integer

PlReal Double

real

PlArray [PlObject]

array

PlDict [(String, PlObject)]

dictionary

PlData [Word8]

raw data

PlDate String

date (ISO 8601, but currently it is not validated)

objectToPlist :: ArrowDTD a => a PlObject XmlTree Source

Arrow to convert PlObject to plist with root element and DTD declaration.

plistToObject :: ArrowXml a => a XmlTree PlObject Source

Arrow that converts XML tree to PlObject. Tree should contain at list one "plist" element.

objectToXml :: ArrowXml a => PlObject -> a b XmlTree Source

Arrow to convert PlObject to XML. It produces XmlTree without root element.

xmlToObject :: ArrowXml a => a XmlTree PlObject Source

Arrow that converts XML element to PlObject. Element should be "string", "array", "dict", etc.