Model view and labels are not displayed correctly
You're trying to change the content of your XML to provide structural changes to the XML document. This content is escaped so it doesn't break the XML document.

If the whole goal of theming is set your XML image field to a image:loc element, you should just change add a Label to your field with it set to "image:loc". This will render the XML document image field as an image:loc element.