xml: Track changes to xml trees as they happen
xml: Create a more robust diff format