Thanks very much!
___
lxml - The Python XML Toolkit mailing list -- lxml@python.org
To unsubscribe send an email to lxml-le...@python.org
https://mail.python.org/mailman3/lists/lxml.python.org/
Member address: arch...@mail-archive.com
Here's some code I found to strip namespaces after parsing, without relying on
a regex:
```
# Remove namespace prefixes
#Source: https://stackoverflow.com/questions/60486563/
tree = et.parse(INPUTFILE)
root = tree.getroot()
for elem in root.getiterator():
#ValueError: Invalid input tag of
Hi,
My understanding is...
xpath()
The xpath function allows for complex queries based upon the XPATH standard.
For example, from the following XML:
Fred
34
Chris
22
Sarah
28
The following xpath query would pick out ju