I have two xml variables:
@main xml = '<root></root>'
@insert xml = '<rows><row>SomeRow</row></rows>'
And I would like to insert child nodes of @insert rows, so that I have a resultant XML that looks like this:
<root>
<row>SomeRow</row>
</root>
I am well aware of inserting xml from sql variables (using sql:variable("@insert")) but this inserts the whole XML including the root element. What I want is to only insert the child nodes of the root element in the @insert variable.
Thanks a bunch.