The simplest solution is just to edit the XML file to include a line like this:
<icon name="firefox"/>
There's thorough instructions here:
https://unix.stackexchange.com/questions/23776/how-to-change-a-file-type-icon-in-xfce-thunar
If you want to change an arbitrary icon, some instructions here: