simplexml icon indicating copy to clipboard operation
simplexml copied to clipboard

Exception parsing Copyright simbol

Open luispereira opened this issue 8 years ago • 1 comments

I'm receiving a file from the server and parsing an xml file with some especial characters like © on a value e.g.:

<string name="copyrightText">Something &copy;</string>

&#169; and \u00a9 works but not &copy;

But it always crash and burns when trying to parse it. I'm missing something here? Since &amp; is correctly parsed I expected the same happened to the copyright symbol.

luispereira avatar Jan 13 '17 16:01 luispereira

@luispereira The &copy; reference is not valid XML, only valid HTML. See here for all valid XML and HTML codes.

magneticflux- avatar Dec 15 '17 23:12 magneticflux-