Update main.cpp

Messed with the print commands such that it should (hopefully) output proper XML.