EventGenerator.
to_xml
Export the event generator definition to XML
Should the XML include whitespace for readability?