updated parsing code to parse the data one row at a time as it is
available rather than passing one huge file to the xml parser