Validating xml data with xmlreader