I am trying to replicate a Perl command in Python, but can't seem to find an answer nearly as simple. I've found a potential solution here, but if there's something simpler out there, all the better.
The Perl command:
print XMLout($stationlist, XMLDecl => $xml_header, RootName => 'stationlist' );
I want to simply write out a list of custom objects in Python to XML, as the above line does.
Thanks!
Tiada ulasan:
Catat Ulasan