pugixml.pugi.XMLDocumentΒΆ

class pugixml.pugi.XMLDocument

Bases: XMLNode

Document class (DOM tree root).

Members:

__init__(self)

Initialize XMLDocument as an empty document.

document_element(self)

Return the document element.

load_buffer(self, contents, size[, options, ...])

Load a document from a buffer.

load_file(self, path[, options, encoding])

Load a document from the existing file.

load_string(self, contents[, options])

Load a document from a string.

reset(*args, **kwargs)

Overloaded function.

save(self, writer[, indent, flags, encoding])

Save the XML document to writer.

save_file(self, path[, indent, flags, encoding])

Save the XML document to a file.