make document adopt xml node.
adoptChild != adoptNode
Merge pull request #8 from peterp/master

make document adopt xml node.