Closed GoogleCodeExporter closed 9 years ago
Issue 216 has been merged into this issue.
Original comment by arseny.k...@gmail.com
on 4 Oct 2013 at 1:00
Issue 216 has been merged into this issue.
Original comment by arseny.k...@gmail.com
on 4 Oct 2013 at 1:00
This code is invalid.
Nodes can not exist outside of the document. If you remove a node from the
tree, the node handle becomes invalid. I believe this is described in the
manual.
What happens is that in this code:
element.m_XmlNode = tempNode;
m_XmlDocument.remove_child(tempNode);
it is illegal to use element.m_XmlNode after remove_child returns since
m_XmlNode and tempNode both point to the same object inside the tree, but the
object is removed. What you're seeing is unspecified behavior.
Original comment by arseny.k...@gmail.com
on 4 Oct 2013 at 1:04
Original issue reported on code.google.com by
kshitija...@gmail.com
on 20 Sep 2013 at 11:01