Código PHP:
$consulta_UDF ="SELECT CONVERT(varchar(MAX),[XmlEncodedLabels].query('declare namespace p1 =\"http://schemas.datacontract.org/2004/07/SoftwareHouse.CrossFire.Common.Shared\";
declare namespace p2=\"http://schemas.microsoft.com/2003/10/Serialization/Arrays\";
/p1:TranslateableLabel/p1:LabelDictionary/p2:KeyValueOfstringstring[1]/p2:Value/text()')) as Resul
FROM SWHSystem.dbo.UdfEnumValue
WHERE SWHSystem.dbo.UdfEnumValue.Name ='$codigo'
ORDER by SWHSystem.dbo.UdfEnumValue.ObjectID";