History checking of XML data streams