zzycami / touchcode

Automatically exported from code.google.com/p/touchcode
0 stars 0 forks source link

EntityRef error when encountering an ampersand. #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attempt to parse a chunk of xml with an unescaped ampersand in it.
 <foo>http://website.com?foo=1&bar=2</foo>
2.
3.

What is the expected output? What do you see instead?
The ampersand would be escaped (&amp;) and continue processing.

What version of the product are you using? On what operating system?
r99 on OS X Leopard in the iPhone Simulator.

Please provide any additional information below.
I'm not sure if this responsibility should fall on the parser or the XML 
provider.

Original issue reported on code.google.com by encyteme...@gmail.com on 26 Jul 2008 at 1:11

GoogleCodeExporter commented 8 years ago
I think technically this is broken XML.

However NSXMLDocument does provide options to tidy up the XML. It would be nice 
to add a XML tidy mode - 
but that's a lot of work unfortunately.

Marking this as wont fix for now.

Original comment by jwight on 26 Jul 2008 at 3:29

GoogleCodeExporter commented 8 years ago
That's understandable.  I was able to get around this by using 
initWithXMLString with CXMLDocumentTidyHTML 
for now.

Original comment by encyteme...@gmail.com on 26 Jul 2008 at 7:32