Adds customization to #to_xml.