theiOSguy
theiOSguy

Reputation: 608

iOS - plist file parsing error

The application gives error as soon as I put & in the string value of one of the elements in my plist file. Any idea why?

<plist>
    <array>
        <string>http://www.foo.com?a=b&c=d</string>
    </array>
</plist>

If I remove this & in URL, everything works.

Upvotes: 1

Views: 176

Answers (2)

Nina
Nina

Reputation: 1679

Replace & with &amp; It should be the problem I hope!

Upvotes: 2

Seb T.
Seb T.

Reputation: 1124

Have you tried to replace the & by &amp;

Upvotes: 1

Related Questions