I've seen the second season so let's start from there. That's when it gets complicated.
Which episode came before which, and when?
I know there is a OVA called xxxHolic Shunmuki but it didn't interest me in particular. I also saw that there is a season called xxxHolic ROU but I did not understand what episodes it has (at the moment) or how many seasons are there in general.