Protecting "\n" in XML files

Hi there,

I have to import some XML files which have a structure like:

<resources>
<string name="label_transfer_ui_message_warning">Once the code is generated the selected feature(s) will be locked from use.</string>
<string name="label_transfer_contact_dealer_message">To complete the transfer process contact your dealer by phone, or in person. \n\n You will need to provide your transfer code as well as old and new device serial numbers.</string>
</resources>

I have already created a custom XML file type and activated the HTML embedded content processing, as we have CDATA elements with HTML tags in them.

What I'm left with is handling these "\n" elements. I'd like to convert these line break elements into tags, in order to protect them.

How can I do this? I don't see any way to do it via xpath, and I cannot see anywhere to use regular expressions...

Thank you,
Enrico