Ahsan
It totally depends on your usage.
Diesel engines are high maintenance, specially when being this old.
Xli is a good reliable everyday car but again the point of the matter is the year 2006.
What ever you do a complete service will be inevitable after the purchase.
Every one has its own experience and opinion but I will prefer the petrol Xli for myself.