What is meant by NSXMLParserErrorDomain error 1549

2019-08-01 13:09发布

问题:

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]