Remove "xmlns:py..." With Lxml.objectify
I just discovered lxml.objectify which seems nice and easy for reading/writing simple XML files. Firstly, is it a good idea to use lxml.objectify? For instance is it mature and sti
Solution 1:
As pointed out here : When using lxml, can the XML be rendered without namespace attributes?, this is enough to prevent this xmlns
markup to appear :
objectify.deannotate(root, xsi_nil=True)
etree.cleanup_namespaces(root)
Post a Comment for "Remove "xmlns:py..." With Lxml.objectify"