#105 ✓resolved
Martin S.

libplist fails to convert string nodes with xml entities

Reported by Martin S. | January 6th, 2010 @ 06:44 PM

The binary/xml conversion fails for the example below due to no xml entity conversion:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Some String with Entities</key>
    <string>hello world &amp; others</string>
</dict>
</plist>

According to the NSPropertyListSerialization class documentation string nodes in XML format do the following:

"In XML format, the string is simply stored in UTF8 format as the content of a string element, and the only character escapes required are those used by XML such as the '<' markup representing a '<' character."

Fix: Converting the above plist to binary and the result back to xml must be consistent.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A project around supporting the iPhone in Linux.

See http://libimobiledevice.org

People watching this ticket

Pages