My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 19: EntityRef error when encountering an ampersand.
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Jul 2008


 
Reported by encyteme...@gmail.com, Jul 25, 2008
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.
 
Jul 26, 2008
Project Member #1 jwight
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.
Status: WontFix
Labels: TouchXML
Jul 26, 2008
#2 encyteme...@gmail.com
That's understandable.  I was able to get around this by using initWithXMLString with CXMLDocumentTidyHTML 
for now.

Powered by Google Project Hosting