[[ Bug 12628 ]] Use appropriate libxml2 API call to move XML nodes from one document to another.
Merge branch 'bugfix-12628' into release-6.6.3