Below query expression:
SELECT distinct xmlCol.value(\'(//interest/@id)[1]\',\'nvarchar(64)\') FROM table1
Returns a list of id of
select distinct T.N.value('.','nvarchar(64)') from table1 cross apply xmlCol.nodes('//interest/@id') as T(N)