well i've tried to do some code that can do a xml file in a "well done" way, I found this code https://gist.github.com/brentdax/caaaa134c500e00efd36 and i think is a good option to implement that i wish. but i can implementa that.
actually i implements but the error says: use of undeclared type NSXMLNode.
I tried to put it on source file, in a playgrouns on viewcontroller code file without success
I don`t know how can implement this.+
thanks in advice
If you want help fixing your code you need to show us that code.
Failing that, take a look at the
NSXMLParserclass. It's fairly easy to use.EDIT:
This is a very old thread, but rmaddy pointed out that the question was about generating XML, and my solution of using NSXMLParser will parse XML, but not generate it.
I recently found a reference to the XMLParsing library, which apparently follows the conventions of the
Codableprotocol. I suggest using that.