Removed seperate xml function