Include an XML DOM-renaming function

For use within the parser, in generating the exported XML. Written by
@feklee.