propertyListWithString static method
Creates and returns a property list from the specified xml String.
Equivalent to iOS method
[NSPropertyList propertyListWithData:options:format:error]
The string
parameter must be a String of xml plist.
Returns one of String, int, double, Map<String, Object>, List, DateTime, bool or ByteData.
Throws PropertyListReadStreamException if the plist is corrupt, values could not be converted or the input stream is EOF.
Implementation
static Object propertyListWithString(String string) {
try {
var p = XMLPropertyListReader(string);
return p.parse();
} catch(e, s) {
print(s);
throw PropertyListReadStreamException.nested(e);
}
}