get attributes in a string to export