groob / plist

Go Plist library
Other
49 stars 13 forks source link

Plist failing plutil -lint is successfully parsed #3

Open jessepeterson opened 7 years ago

jessepeterson commented 7 years ago

A plist that begins with this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
test
<plist version="1.0">
<dict>
    <key>PayloadContent</key>

.. is successfully parsed. Note the test after the docstring. While apparently valid XML definitely not a valid plist.

groob commented 7 years ago

Interesting. How did you happen to create this sort of plist?

jessepeterson commented 7 years ago

A text editor. I was intentionally trying to muck it up to test error handling, but low and behold: it took it. :)