Questions tagged [lxml]

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

2 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
37 views

OOP parsing for DB dump XML Python

I am parsing large XML (DB dump). So, the content looks like many different objects with their properties and dependencies (foreign keys). My way to do it - using lxml.etree (iterparse): ...
3
votes
0answers
41 views

Applying a transformation to all the text nodes inside a given node using lxml.html?

I would like to apply a transformation, say uppercase, to all the text nodes inside a given node. I came up with the following code which works fine for my sample ...