I have problem when trying to add new elements xmltree by using appendChild:
// let's assume we have node1 and node2
var newnode = node1.cloneNode( true);
var newnodenamebefore = newnode.nodeName;
var newnodenameafter = newnode.nodeName;
Now for some reason newnodenamebefore and newnodenameafter are not equal. It seems that after newnode is appended to node2 it get's same nodeName than node2.
Is this bug or what is the reason?