Converts an attribute of an XML tag and its value to a new child element