+ Saves XML tree creating a file named with given string.
+
+ If @a indentstep is greater than or equal to zero, then, while saving,
+ an automatic indentation is added with steps composed by indentstep spaces.
+
+ If @a indentstep is @c wxXML_NO_INDENTATION, then, automatic indentation
+ is turned off.
+ */
+ virtual bool Save(const wxString& filename, int indentstep = 2) const;
+
+ /**
+ Saves XML tree in the given output stream.
+ See Save(const wxString&, int) for a description of @a indentstep.
+ */
+ virtual bool Save(wxOutputStream& stream, int indentstep = 2) const;
+
+ /**
+ Sets the document node of this document.
+
+ Deletes any previous document node.
+ Use DetachDocumentNode() and then SetDocumentNode() if you want to
+ replace the document node without deleting the old document tree.
+
+ @since 2.9.2
+ */
+ void SetDocumentNode(wxXmlNode* node);
+
+ /**
+ Sets the encoding of the document.