If I have:
john something or other
Actually, sorry, the best I've got is:
select distinct r.value('fn:local-name(.)', 'nvarchar(50)') as t FROM @xml.nodes('//quotes/*/*') AS records(r)
Guess I answered my own question...