Fix: xml: Find the minimal set of changes when part of a document is replaced