I have a sql query that is producing a xml tree from the sql tables. Now I need to append an xml tag to the xml tree.
Is there an easy way to do that?
The way that I found out through googling is to convert the xml tree to a string and concatenante the strings together (xml tree with the new xml tag that I need to add). The problem with that is that when I cast the xml tree as nvarchar(max) the xml is getting truncated as noted in this post (
I'm hoping SQL 2005 has an easier way to append xml tags.
Is there an easy way to do that?
The way that I found out through googling is to convert the xml tree to a string and concatenante the strings together (xml tree with the new xml tag that I need to add). The problem with that is that when I cast the xml tree as nvarchar(max) the xml is getting truncated as noted in this post (
I'm hoping SQL 2005 has an easier way to append xml tags.