Encapsulation of XMLDatabase + merge complete