Added ability to create xref attribute in update_xref