This would help to identify the element but would not work in the DiffGenerator as bellow!
Please be aware, that 'name' (String) and 'ref' (QName) can't be compared.