Safe Haskell | None |
---|
- data UnparsedXmlPlistItem
- unparsedXmlPlistItemToElement :: UnparsedXmlPlistItem -> Element
- readXmlPropertyList :: String -> Either String PropertyList
- readXmlPropertyListFromFile :: FilePath -> IO PropertyList
- readXmlPartialPropertyList :: String -> Either String (PartialPropertyList UnparsedXmlPlistItem)
- showXmlPropertyList :: (InitialPList f pl, PListAlgebra f Element) => pl -> String
- readXmlPartialPropertyListFromFile :: FilePath -> IO (PartialPropertyList UnparsedXmlPlistItem)
- writeXmlPropertyListToFile :: FilePath -> PropertyList -> IO ()
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.
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
,
, and PartialPropertyList
UnparsedPlistItem
).
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
,
, and PartialPropertyList
UnparsedPlistItem
).
PartialPropertyList
PlistItem