pugixml.pugi.XMLWriter

class pugixml.pugi.XMLWriter

Bases: pybind11_object

Writer interface for node printing.

See documentation for details.

Important

  • Do not use XMLWriter directly.

  • In derived classes, override write().

Methods

__init__(self)

Initialize XMLWriter.

write(self, data, size)

Write memory chunks to a stream, file, etc.

Member Documentation

__init__(self: pugixml.pugi.XMLWriter) None

Initialize XMLWriter.

write(self: pugixml.pugi.XMLWriter, data: bytes, size: SupportsInt | SupportsIndex) None

Write memory chunks to a stream, file, etc.

Parameters:
  • data – The chunk of data to write.

  • size – The data size in bytes.