Using Objective C - I want to loop through an XML tree and display the full XML content at each instance of a specific node matching with a particular element name.
As an example - I am looking to get the XML (represented as an NSString) within each instance of element b. I can get the value if there is only a string in element b, but how do I get an NSString representation formatted as XML including all the element names?
<element a>
<element b>
<element c>
some text 1
</element c>
</element b>
<element b>
<element c>
some text 2
</element c>
</element b>
<element b>
<element c>
some text 3
</element c>
</element b>
</element a>