iphone:解析XML时出错:无法读取响应xml(错误代码5)

时间:2011-08-01 10:41:41

标签: iphone objective-c xml-parsing

我正在使用XMLParsing在iphone应用程序中使用我的web服务。

我正在error parsing XML: Unable to read response xml (Error code 5 )

有什么问题?

2 个答案:

答案 0 :(得分:0)

NSXMLParserPrematureDocumentEndError
The document ended unexpectedly.
Available in Mac OS X v10.3 and later.
Declared in NSXMLParser.h.

问题看起来你的xml格式不正确。因此,在这些行上进行调试,您将能够成功解析xml。

答案 1 :(得分:0)