Top "Lxml" questions

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

How to get following sibling of an etree._Element

I am iterating over elements which I find in a xml file like so: for elem in fileasxml.xpath("//elementname[…

python python-2.7 lxml xml.etree
How to parse malformed HTML in python

I need to browse the DOM tree of a parsed HTML document. I'm using uTidyLib before parsing the string with …

python html lxml
Fail to install lxml in MacOS 10.8.4

I am having trouble installing lxml to my Mac OS. I am having the following error when building it. This …

python macos lxml libxml2
Stripping python namespace attributes from an lxml.objectify.ObjectifiedElement

Possible Duplicate: When using lxml, can the XML be rendered without namespace attributes? How can I strip the python attributes …

python formatting lxml objectify elementtree
lxml: add namespace to input file

I am parsing an xml file generated by an external program. I would then like to add custom annotations to …

python xml namespaces lxml sbml
lxml - get a flat list of elements

I'd like to flatten an lxml etree (specifically, HTML, if it matters.) How would I go about getting a flat …

python dom tree lxml flatten
Getting subelements using lxml and iterparse

I am trying to write a parsing algorithm to efficiently pull data from an xml document. I am currently rolling …

python parsing lxml iterparse