Top "Lxml" questions

lxml is a full-featured, high performance Python library for processing XML and HTML.

Get all text inside a tag in lxml

I'd like to write a code snippet that would grab all of the text inside the <content> tag, …

python parsing lxml
How to Pretty Print HTML to a file, with indentation

I am using lxml.html to generate some HTML. I want to pretty print (with indentation) my final result into …

python html lxml pretty-print
src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory

I am running the following comand for installing the packages in that file " pip install -r requirements.txt --download-cache=~/tmp/…

python-2.7 lxml pip
Write xml file using lxml library in Python

I'm using lxml to create an XML file from scratch; having a code like this: from lxml import etree root = …

python xml lxml
easy_install lxml on Python 2.7 on Windows

I'm using python 2.7 on Windows. How come the following error occurs when I try to install [lxml][1] using [setuptools][2]'s …

python lxml python-2.7 setuptools easy-install
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. …

python windows lxml building python-c-extension
How to find recursively for a tag of XML using LXML?

<?xml version="1.0" ?> <data> <test > <f1 /> </test > <test2 > <…

python xml find lxml
How to install lxml on Windows

I'm trying to install lmxl on my Windows 8.1 laptop with Python 3.4 and failing miserably. First off, I tried the simple …

python windows python-3.x pip lxml
how to remove an element in lxml

I need to completely remove elements, based on the contents of an attribute, using python's lxml. Example: import lxml.etree …

python xml lxml
finding elements by attribute with lxml

I need to parse a xml file to extract some data. I only need some elements with certain attributes, here's …

python attributes find lxml