IDs of elements is lost when importing nodes from another document.
When call method 'importNode' executed function 'xmlNodeCopy' from the
library libxml2, which does not import IDs.
Propose to replace the call "xmlNodeCopy" on "xmlDocNodeCopy" in the file
"dom.c".