I need to build a new XML file and in one of the output nodes, place the complete inbound XML in as a string.

How do I do that?

How do I copy the root and all its children?
To a string?

Is it somewhat long-winded to do using XSLT. If you want to go this route, see Pg 67 of Jenni Tennison excellent book "XSLT and XPath on the Edge". It discusses this topic in depth.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.