The S&P200 index (code XJO) does not take dividends into account.
The S&P200 accumulation index (code XJOAI) does take dividends into account.
I am unsure about the methodology except for a general statement that "The XJOAI takes reinvestment of dividends into account". So you might need to research that for yourself if you need more detailed answer.
This index adjusts the total return of the S&P/ASX 200, one of the most widely followed Australian equity benchmarks, for the tax effect of franking credits based on a 0% tax rate.