The problem is, that I get a TBXML element back from initWithURL method of TBXML class. I'd like to save this TBXML document as it is, in order to parse it afterwards, when the user is offline as well, but I can't seem to find a method to get the NSString value of the whole object.
As I am new to Objective-C, this might be something really easy as well, as I didn't see any other problems as these. I hope you can help me and that this answer could be helpful for others.
I personally wouldn't use TBXML, it's old and clunky plus Apple has it's own
NSXMLParserclass, however you can do it like this, assuming you have an TBXML instance called 'tbxml':All that I'm doing here is getting the 'root' element basically the whole document in your case.
Using a class method on TBXML to extract the 'text' for the root element, and store this in an NSString.
You can then use whatever method you'd like to store this NSString or it's value.
To traverse an unknown or dynamic XML input:
Regards, John