xmlread fixes