I am using SQL Server 2012. I have the following code
DECLARE @x xml
SET @x = '<labels defaultText = "Javascript">
<label text = "Asp" />
<label text = "Sql" />
<label text = "Wcf" />
</labels>'
I want to write xpath/xquery query to get all attributes' values named text (in this example - "AspSqlWcf").
Thanks in advance for your help.