Friday, January 14, 2011

NSXMLParserErrorDomain error 68

If you get this kind of parsing error,

NSXMLParserErrorDomain error 68 or called as 'NSXMLParserNAMERequiredError'

Reason :- Most likely, the error is caused because the xml data you are parsing. in the xml there will be some special characters that are not encoded.

Example :- character '&' did not show up as '&amp'

That is what the error means: Parser is expecting an input for that assuming '&' as a element.

Solution :- Change the xml.

For more details :- NSXMLParser Class Reference



  1. Is there any different solution except changing xml ?