2011-08-01 49 views
0

我使用XMLParsing在iPhone應用程序中使用我的web服務。iPhone:錯誤解析XML:無法讀取響應XML(錯誤代碼5)

和我得到error parsing XML: Unable to read response xml (Error code 5)

有什麼不對?

+0

你能給部分代碼...? –

+0

您使用NSXMLPasrser嗎? – iOS

+0

如果您使用NSXMLParser,請查看http://stackoverflow.com/questions/2206780/nsxmlparser-error-code5-iphone鏈接。它可能會幫助你。 – iOS

回答

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

這個問題看起來像你的XML格式不正確。因此,在這些行上進行調試,您將能夠成功解析xml。