1

When using NSXMLParser, what does NSXMLParserUndeclaredEntityError mean? Apples documentation is completely unhelpful

user160917
  • 9,211
  • 4
  • 53
  • 63

2 Answers2

2

Have a look at the first answer on Resolving html entities with NSXMLParser on iPhone where it lists the standard supported entities. Are you able to post your XML that you're parsing?

Community
  • 1
  • 1
Alistair
  • 1,326
  • 1
  • 8
  • 17
2

You get the NSXMLParserUndeclaredEntityError when you use a special character that isn't expected by the NSXMLParser for example &foo;

The only valid special characters that the NSXMLParser will recognize are:

<
>
'
"
user160917
  • 9,211
  • 4
  • 53
  • 63