property-list-0.1.0.4: Apple property list parser

Safe HaskellNone

Data.PropertyList.Xml

Synopsis

Documentation

data UnparsedXmlPlistItem Source

A representation of values that were structurally sound in the property list file but the contents of which couldn't be interpreted as what they claimed to be. The result of the initial parse phase will typically be a PartialPropertyList UnparsedXmlPlistItem, and if the whole plist was parsed properly will contain no actual values of this type.

readXmlPropertyList :: String -> Either String PropertyListSource

Read a property list from a String in the xml1 format. If parsing fails, returns a description of the problem in the Left result.

readXmlPropertyListFromFile :: FilePath -> IO PropertyListSource

Read a property list from a file in the xml1 format. If parsing fails, calls fail.

readXmlPartialPropertyList :: String -> Either String (PartialPropertyList UnparsedXmlPlistItem)Source

Read an XML property list from a String in the xml1 plist format, leaving unparseable elements in the tree.

showXmlPropertyList :: (InitialPList f pl, PListAlgebra f Element) => pl -> StringSource

Render a propertylist to a String in the xml1 plist format from any initial propertylist type (which includes PropertyList, PartialPropertyList UnparsedPlistItem, and PartialPropertyList PlistItem).

readXmlPartialPropertyListFromFile :: FilePath -> IO (PartialPropertyList UnparsedXmlPlistItem)Source

Read an XML propertylist from a file in the xml1 plist format to a partial propertylist which is structurally sound but may contain some unparseable nodes.

writeXmlPropertyListToFile :: FilePath -> PropertyList -> IO ()Source

Output a propertylist to a file in the xml1 plist format from any initial propertylist type (which includes PropertyList, PartialPropertyList UnparsedPlistItem, and PartialPropertyList PlistItem).