iD.format.XML = { mapping: function(entity) { if (iD.format.XML.mappings[entity.type]) { return iD.format.XML.mappings[entity.type](entity); } }, rep: function(entity, changeset_id) { if (iD.format.XML.reps[entity.type]) { return iD.format.XML.reps[entity.type](entity, changeset_id); } else { if (typeof console !== 'undefined') console.log(entity.type); } }, decode: function(s) { return s.replace(/>/g,'>').replace(/