Bridging the gap between tracking and detecting changes in XML