error : "The node to be inserted is from a different document context."
Posted on 2004-11-27
i have 2 forms (2 different classes in same namespace in Visual Studio.net) in a C# program.
In the first form, i read XML file and push xmlnode into Stack, then pass the Stack to second form's constructor(i copied stack to second form)
In the second form, i pop xmlnode from the copied Stack. I create a new xmlnode. I tried to append child the new xmlnode to the xmlnode of stack, like this: xmlnode_of_stack.appendchild(new xmlnode);
Compile is ok
But when i run at that line, i got this error "The node to be inserted is from a different document context."
I'm a new in C#.
I will accept any solution can help me out>>>