问题
I am trying to parse a xml document using NSXMLParser. Every time it result in NSXMLParserErrorDomain error 1549. I cant find any documentation regarding that error code.
Any help.
-Shakthi
回答1:
This is probably a problem with resolving a DTD in the XML. Try disabling DTD downloading with this code:
[parser setShouldResolveExternalEntities:NO]
来源:https://stackoverflow.com/questions/6028090/what-is-meant-by-nsxmlparsererrordomain-error-1549