Login Register


Sweet Python Techniques and Advices. filter_list
Author
Message
RE: Sweet Python Techniques and Advices. #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]

Reply





Messages In This Thread
Sweet Python Techniques and Advices. - by L0aD1nG - 07-28-2014, 03:42 PM



Users browsing this thread: 1 Guest(s)