The xml element below
<text>this is some text <content><link attr="someattr">text to appear in link</link></content> . this is the end of the text</text>
needs to transform to
<p>this is some text <a attr="someattr">text to appear in link</a> . this is the end of the text</p>
I have a method that takes in "content" element as parameter and returns the "a" element. I cannot figure out how to display the text from "text" element and the link at the same time.