RE: Sweet Python Techniques and Advices. 08-14-2014, 07:14 AM
#14
(08-13-2014, 10:35 PM)L0aD1nG Wrote:(08-13-2014, 05:53 PM)Psycho_Coder Wrote: for xml parsing use lxml its fast efficient and very user friendly
I am still using etree, I must check the others sometime. But still I find etree to be very clear.
EDIT: Does lxml.etree has a tostring() method that supports "pretty_print=True" as args?
Yes. Have a look : http://lxml.de/tutorial.html#the-e-factory
It has much more capabilities.
![[Image: OilyCostlyEwe.gif]](http://fat.gfycat.com/OilyCostlyEwe.gif)
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)