Errors in XML link generation