Graphic adventure and dialog trees

I am planning a graphic adventure. I am searching info about how to make dialogs in the game.

I found some people use xml to nest phrases.

Can anyone give a hint? How do you do it? I need a guide about how to do it…

Thanks