claunia / plist-cil

C#/.NET parser for Apple and GnuStep Property List (aka plist), based on Java's dd-plist
Other
54 stars 17 forks source link

Ignore DTD when reading XML PList documents #12

Closed qmfrederik closed 8 years ago

qmfrederik commented 8 years ago

I'm slightly surprised this wasn't an issue on .NET 4.6, but when trying to read a XmlDocument which contains a DTD definition (like the XML property lists), .NET Core will throw an exception unless you've instructed it to either ignore or validate DTD's.

This PR causes .NET to ignore them (they are not used anyway).