make document adopt xml node.