Xmlreader isstartelement in a while loop is repeating the previous.