change the method to copy an XMLNode. 

The previous method throws the exception.