pugixml.pugi.BytesWriterΒΆ
- class pugixml.pugi.BytesWriter
Bases:
XMLWriter
(pugixml-python only)
XMLWriter
implementation forbytes
.See also
Examples
>>> from pugixml import pugi >>> doc = pugi.XMLDocument() >>> doc.append_child('node') >>> writer = pugi.BytesWriter() >>> doc.print(writer, flags=pugi.FORMAT_RAW, encoding=pugi.ENCODING_UTF32_BE) >>> writer.getvalue().decode('utf-32be') '<node/>'
Members: