
Aug. 9, 2022
9:16 a.m.
On 08/08/2022 22:08, Majewski, Steven Dennis (sdm7g) wrote:
Add options: method=‘c14n2’, strip_text=True When you serialize the output. ( pretty_print should also be the default False )
print(etree.tostring(etree.fromstring(ss),method='c14n2', strip_text=True)) b'<wpt lat="46.98520" lon="6.8831"><name>blah</name></wpt>'
Thank you.