you can use XQuery, something like this:
select
c.value('(name)[1]', 'varchar(max)') as [Name],
nullif(
replace(
c.query('
for $i in stuff/note/text()
return concat($i, ",")
'
).value('.', 'nvarchar(max)') + ','
,',,','')
, ',')
from @data.nodes ('/root/item') as t(c)