Add format and remove the root element