Add vote function, which works on an XML file