I guess my question is not quite clear. I'll try and re-frame it.
Here's what I am trying to do:
I am trying to write an XML doc with the code present in First post.
I am creating Elements and then setting text for each element.
The text for one of the elements has tags. Basically HTML content.
So the tag with the content should look like this:
Some text sample text dummy text. Trial Text. ahkjsj Text
dsfsdf jkkjs kifsdfko kmlsmdkfmiusdfyugsd y deser cybvubu ij njnknmlkm