Added to_xml_file method for exporting API classes to an XML file; includes XML version and doctype declarations'
Updated example1 to use new to_xml_file method