First you have to add the Lab "Add any gadget by URL". In your Gmail, click on the gear at the top right and choose "Settings". In the blue list at the top of the page should be "Labs". Click on that and find "Add any gadget by URL". Check "Enable" and then click on "Save Changes" at the top or bottom.
The next question is how to create the XML file.
Copy all the text below by clicking anywhere in the box and pressing CTRL and A.