module ActiveSupport

modified from stackoverflow.com/a/29431089 preserve attributes in xml