I created a basic XmlDocument with one node:
XmlDocument bigDoc = new XmlDocument();
bigDoc.LoadXml("<Request></Request>");
and I'm getting another XmlDocument that I want to insert inside <Request>
node.
It doesn't work for me:
XmlNode requestNode = bigDoc.FirstChild;
requestNode.AppendChild(anotherXMLDocument);
It thorows an exception.
How can I insert a XmlDocument inside another XmlDocument node?