About 5,530,000 results
Open links in new tab
  1. What are the differences between lxml and ElementTree?

    70 When it comes to generating XML data in Python, there are two libraries I often see recommended: lxml and ElementTree From what I can tell, the two libraries are very similar to …

  2. How to install lxml on Windows - Stack Overflow

    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 and obvious solution: pip install lxml. However, this didn't work. Here's w...

  3. Installing lxml module in python - Stack Overflow

    Feb 21, 2017 · sudo apt-get install python2-lxml If you are planning to install from source, then albertov's answer will help. But unless there is a reason, don't, just install it from the repository.

  4. python - How to install lxml on Ubuntu - Stack Overflow

    Jun 28, 2011 · I'm having difficulty installing lxml with easy_install on Ubuntu 11. When I type $ easy_install lxml I get:

  5. python - How to install lxml? - Stack Overflow

    Nov 2, 2022 · C:\Program Files\Python311>pip install lxml Collecting lxml Using cached lxml-4.9.1.tar.gz (3.4 MB) Preparing metadata (setup.py) ... done Installing collected packages: lxml …

  6. finding elements by attribute with lxml - Stack Overflow

    finding elements by attribute with lxml Asked 14 years, 9 months ago Modified 4 months ago Viewed 81k times

  7. Write xml file using lxml library in Python - Stack Overflow

    Write xml file using lxml library in Python Asked 15 years, 7 months ago Modified 5 years, 1 month ago Viewed 100k times

  8. lxml.etree: Start tag expected, '<' not found, line 1, column 1

    You are using lxml.etree.fromstring, but giving it a file path as the argument. This means it's trying to interpret "C:\Users...\jh944.xml" as the XML data to be parsed.

  9. Python pretty XML printer with lxml - Stack Overflow

    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 the following XML: &lt;

  10. How to use lxml to find an element by text? [duplicate]

    Jan 13, 2013 · How to use lxml to find an element by text? [duplicate] Asked 12 years, 11 months ago Modified 1 year, 10 months ago Viewed 41k times