Bad wording on the question, sorry about that. Will try to explain what I\'m trying to do.
Basically I have the output from a search as Xml and in that Xml there is a node l
The best thing to do in such situations is to recursively copy nodes from input to output and override the nodes that you want to treat differently. The key idea is that the text strings are nodes which can be copied too. Here's an example: