python: print xml document

Shadoogmqhdav

New Member
If I print xml document this way:\[code\]print(doc.toprettyxml(indent=' '*spaces, encoding='utf-8'))\[/code\]I got this:\[code\]b'<?xml version="1.0" encoding="utf-8"?>\n<element att=""/>\n'\[/code\]How can I get away the b' prefix and ' suffix ?
 
Back
Top