(no version information, might be only in CVS) DomDocument_add_root() も参照下さい。