plist-cil
plist-cil copied to clipboard
C#/.NET parser for Apple and GnuStep Property List (aka plist), based on Java's dd-plist
I'm experiencing an exception when attempting to parse a binary plist. The exception thrown is: `{"The added or subtracted value results in an un-representable DateTime.\r\nParameter name: value"}` Unfortunately, I cannot...
When using `PropertyListParser.SaveAsXml();` the output is an xml with the Byte Order Mark (BOM) which are non ASCII characters. I made a simple test of loading a binary Info.plist and...
This PR adds the option to sort dictionary keys on XML serialization that was discussed in #74. Unit testing for the new option is also included. I've implemented the change...
I'd like to suggest that plist-cil will sort key-value pairs alphabetically when it serializes a dictionary to XML, in the same way that `plutil` writes processed plists on the Mac....
I've just tried reading a binary plist from the OSX Monterey beta, and the parse operation is failing: `Failed to read plist data - Array dimensions exceeded supported range. -...
First of all, great work on this library! We're using it in an ASP.NET Core 3.x web application to parse the plist data in the request body, unfortunately as of...
Hi, I trying following xml. ``` xml def]]> def]]> ``` I expected "b%]]>def" string and key. But I got "b%]]" It is strange. Because, following CData parsing code is not...
``` public static void SaveAsASCII(NSArray root, FileInfo outFile) { string parent = outFile.DirectoryName; if (!Directory.Exists(parent)) Directory.CreateDirectory(parent); using (Stream fous = outFile.Open(FileMode.OpenOrCreate, FileAccess.ReadWrite)) using (StreamWriter w = new StreamWriter(fous, Encoding.ASCII)) {...
Add automatic serialize/deserialize. This is a long term issue. Up for grabs.
The Exception is:"The added or subtracted value results in an un-representable DateTime. Arg_ParamName_Name" Simply adding try-catch can fix this problem. public NSDate(ReadOnlySpan bytes) { try { Date = EPOCH.AddSeconds(BinaryPropertyListParser.ParseDouble(bytes)); }...