
Jan. 15, 2025
5:14 p.m.
Thank you Holger and Stefan for your feedback. I needed to pull several elements from an XML document that had namespace and create a new XML document based on the pulled elements. This meant multiple find* calls and lost time in debugging when I forgot to include the namespace parameter. Because I used etree.fromstring, it provided the namespaces included in the original XML and it appeared to be a nice idea to use those prefixes. However that was merely a convenience and it does not apply universally. The namespace is what matters and I can define whatever prefixes that I want. I hope I processed your feedback correctly. Please let me know if I have not.