ngallagher / simplexml

Simple XML
Apache License 2.0
97 stars 38 forks source link

Exception parsing Copyright simbol #21

Open luispereira opened 7 years ago

luispereira commented 7 years ago

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.

magneticflux- commented 6 years ago

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