Compares two given DOM-trees and transforms one to the other.