Function or Library to automatically generate the tester's report XML.

 
I need the robot to automatically generate the tester's report XML. Although I can do this with the clicks of a mouse, I would like to automate inside the robot to speed up my tests.
Does anyone know native functions for this or a library that automates the creation of the tester's report in XML?