implement the XML comaprison