Hi,
Can anyone tell me how to create SQL function to filter for attributes and elements from the given XML string .
Thanks
Sathish
Hi,
Can anyone tell me how to create SQL function to filter for attributes and elements from the given XML string .
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted Jul 25, 2016, 9:20 AM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted Jul 25, 2016, 9:21 AM EDT
declare @Attribute varchar(max) set @Attribute = 'Word' select @xml.value('(//*[local-name() = sql:variable("@Attribute")])[1]', 'varchar(max)')Krishna Rajput SinghRank #605 · 4K reputationPosted Jul 25, 2016, 6:40 PM EDT