Top "Lxml" questions

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

Find python lxml version

How can I find the installed python-lxml version in a Linux system? >>> import lxml >>> …

python lxml
Python: Using xpath locally / on a specific element

I'm trying to get the links from a page with xpath. The problem is that I only want the links …

python xpath lxml
ImportError: cannot import name 'etree' on Python 3.6

I am getting error while running "from lxml import tree" on python3.6 >>> import lxml >>> …

python-3.x ubuntu-14.04 lxml xml.etree
Is there an elegant way to count tag elements in a xml file using lxml in python?

I could read the content of the xml file to a string and use string operations to achieve this, but …

python xml tags count lxml
Receiving 'ImportError: cannot import name etree' when using lxml in Python on Mac

I'm having difficulty properly installing lxml for Python on Mac. I have followed the instructions here, which after installation indicates …

python macos lxml importerror
XML Declaration standalone="yes" lxml

I have an xml I am parsing, making some changes and saving out to a new file. It has the …

python xml parsing xml-parsing lxml
Equivalent to InnerHTML when using lxml.html to parse HTML

I'm working on a script using lxml.html to parse web pages. I have done a fair bit of BeautifulSoup …

python parsing lxml
Creating a doctype with lxml's etree

I want to add doctypes to my XML documents that I'm generating with LXML's etree. However I cannot figure out …

python doctype lxml elementtree
Extracting lxml xpath for html table

I have a html doc similar to following: <html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.…

python html xpath html-table lxml
how do I use empty namespaces in an lxml xpath query?

I have an xml document in the following format: <feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://…

python xml xpath lxml