profile_xml function to accept Profile Name as input