2

I get this error in my app on one specific iPhone 4 device while parsing an XML Feed:

error parsing XML: Error Domain=NSXMLParserErrorDomain Code=76

I am not able to determine why it's happening on this particular device and not others: this is the same feed. There are no XML errors in the feed XML structure and all devices have the same global general settings.

According to the docs, Error 76 is NSXMLParserTagNameMismatchError.

Matthew Crumley
  • 101,441
  • 24
  • 103
  • 129
Nico AD
  • 1,657
  • 4
  • 31
  • 51

3 Answers3

2

Cut and paste your xml here to validate. The error messages are pretty solid.

Eric Brotto
  • 53,471
  • 32
  • 129
  • 174
2

this error happens when the closing tag doesn't match the opening tag, like so:

<hello>
    <hi />
    <hi />
    <hi />
</goodbye>

or

<hello />
    <hi />
    <hi />
    <hi />
</hello>

(the tag was closed on the first line)

Pizzaiola Gorgonzola
  • 2,789
  • 1
  • 17
  • 12
2

Your xml may be inconsistent. Validate it against http://validator.w3.org/#validate_by_input

Praveen S
  • 10,355
  • 2
  • 43
  • 69
  • no, the problem only oocurs on one device. after some tests, it seems related to the 3G connection quality. the problem does not occurs on the same device with Wifi. – Nico AD Jun 01 '11 at 07:50
  • So you may be getting partial document. – Praveen S Jun 01 '11 at 07:57