开发者

ios XML parsing : Error Domain=NSXMLParserErrorDomain Code=76 on some devices

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 NSXM开发者_运维知识库LParserTagNameMismatchError.


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


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


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜