change the method to copy an XMLNode. The previous method throws the exception.
Merge pull request #1766 from Zhengzi/UIdefects

change the method to copy an XMLNode.