objective c - How do I find out in iOS if an XML file from URL is unencrypted? -
I was thinking of a class on NSXMLParser with a class method (BOOL) UnncryptedXML: and the implementation of a NSXMLPerser's local Example using your initWithContentsOfURL: This assumption, if it does not start, then he can not read XML, so it is not encrypted.
Will you find such a fair implementation? Is it reliable in terms of my question?
You can do 2 things.
- Write an xml file to
& lt ;? Xml
- which will not parse an encrypted XML file, try parsing it and if it is not created properly then the parser will fail < / Li>
If 1 & amp; nbsp; 2 is unsuccessful if the file is invalid: encrypted / broken
if only 1 is unsuccessful,
You can encrypt /
Comments
Post a Comment