Extracting literal html text from within an XML element in iOS

solg

New Member
I have some XML that looks like this:\[code\]<ContentItem><DataContent><strong>A heading</strong><br /> eSome detailed text</DataContent></ContentItem><ContentItem><DataContent><strong>Another heading</strong><br /> Some other detailed text</DataContent></ContentItem>\[/code\]I need to extract the literal strings of HTML between the \[code\]DataContent\[/code\] elements, and then join them together into a single html document later on. I recognize that the HTML I want will get parsed into various XML elements itself, so I guess what I'm looking for is a way to find the text representation of an XML element and all its child elements.
 
Back
Top