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.

  1. Write an xml file to & lt ;? Xml
  2. 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,

< / P>

You can encrypt /

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -