Comment 1 for bug 1819952

Revision history for this message
scoder (scoder) wrote :

Right, the XML namespace needs special-casing in the serialiser. PR welcome. See
https://github.com/lxml/lxml/blob/fd81ebb9269e5955eca8d4e9668b1a1daf9e00c0/src/lxml/serializer.pxi#L1089
Tests are in "test_incremental_xmlfile.py".
It might actually be worth special casing everything that's in "_DEFAULT_NAMESPACE_PREFIXES" (defined in "etree.pyx").