Building lxml for Python 2.7 on Windows
I am trying to build lxml for Python 2.7 on Windows 64 bit machine. I couldn’t find lxml egg for Python 2.7 version. So I am compiling it from sources. I am following instructions on this site
I am trying to build lxml for Python 2.7 on Windows 64 bit machine. I couldn’t find lxml egg for Python 2.7 version. So I am compiling it from sources. I am following instructions on this site
After reading from an existing file with ‘ugly’ XML and doing some modifications, pretty printing doesn’t work. I’ve tried etree.write(FILE_NAME, pretty_print=True).
I have an xml doc that I am trying to parse using Etree.lxml
I am trying to parse xml which contains the some non ASCII cheracter, the code looks like below from lxml import etree from lxml import objectify content = u'<?xml version="1.0" encoding="utf-8"?><div>Order date : 05/08/2013 12:24:28</div>' mail.replace('xa0',' ') xml = etree.fromstring(mail) but it … Read more