In SQL Server 2008 R2,
Considering the following xml
DECLARE @xml xml = '<data><fr>Chambre standard</fr><en>Standard room</en></data>';
How can I return the following string:
Chambre standard Standard room
Currently, I'm only able to return the string concatenated together without any space by using
SELECT @xml.query('//*/text()').value('.', 'varchar(max)')
Which return
Chambre standardStandard room
But I need to insert a space in there.
How could I insert a space between the node text?