Here is a small code snippet to convert you varchar data to XML data
declare @data varchar(100) set @data ='
select convert(xml,@data)
The data will be converted into XML.
Cheers,
Venkatesan Prabu .J
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · SQLSupabase in Practice: Build and Ship Production Apps on Postgres, from First Table to LaunchDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.