how can YQL output a XML in my python script?

I know the console can output a XML or a JSON format output by using YQL.But When I want to save the output file, I do it in my python script by using follow codes:\[code\]import yqlquery = 'blablabla'y = yql.Public()result = y.execute(query)\[/code\]and the result is a dict but I want to save it in a file with the XML format. How can I make it?thanks!
 
Back
Top