I have two xml variables:
@main xml = '<root></root>'
@insert xml = '<rows><row>SomeRow</row></rows>'
And I would like to insert @insert line child nodes, so that I have the resulting XML that looks like this:
<root>
<row>SomeRow</row>
</root>
I am good at knowing how to embed xml from sql variables (using sql: variable ("@insert")), but this inserts all the XML, including the root element. I only want to insert the children of the root element into the @insert variable.
Thanks a lot.
source
share