The "XML" on the left is not even valid -- was the output from another node? If so, the author should probably be notified...
Assuming that the text on the left is a string that you received in a msg.payload, you can use a function node to remove those strings, using a regex such as:
msg.payload = msg.payload.replace(/<\/node .*+>/g, "</node>");
return msg;
I tried using the XML node to convert the "string" on the left to actual XML, but it throws an exception, as it probably should. Of course, it would be nice to have an option on the XML node to ignore invalid text (like using a lenient parser). But I guess that would just turn it into an xml-lint node.
--
Steve