Skip to content Skip to sidebar Skip to footer

Converting My Python Script From Lxml To Xml.etree

I am trying to convert my script (https://github.com/fletchermoore/n2c2) to use the default package xml.etree instead of lxml. This was an oversight on my part, but now I am realiz

Solution 1:

I found the answer in another post: Accessing XMLNS attribute with Python Elementree?

I used the function written by deancutlet to create the nsmap. Everything else in my code seems to work without modification.

Post a Comment for "Converting My Python Script From Lxml To Xml.etree"