I am trying to merge two XML document objects using StructAppend in ColdFusion MX 7 using StructAppend. The two XML documents look something like this:
firstDocument = XMLParse('<test><a>the letter a</a><b>the letter b</b></test>');
secondDocument = XMLParse('<test><a>the letter a</a><b>the letter B</b><c>the letter c</c></test>');
When I try to call StructAppend(firstDocument, secondDocument, true), I receive the following error:
WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.
Any suggestions on how I can do this?