(regardless of the actual names of the elements), you can directly issue a File | Save As command, enter the name of the .csv file you want to create, check the "Convert from XML using adapter" check box, click Save, then pick the Comma Separated Values adapter in the following dialog and you are done.
If your XML doesn't have the 3-levels structure, you will have to design and run a stylesheet to change its shape.