Public Member Functions | |
NXmlWriter (NXmlDocument *doc) | |
Constructs a NXmlWriter object. | |
~NXmlWriter (void) | |
Destroys a NXmlWriter object releasing used resources. | |
nint32 | dump (NString *buffer, bool indent) |
Save the XML document to a buffer. | |
nint32 | dump (NFile *file, bool indent) |
Save the XML document to a file. |
Definition at line 43 of file nxmlwriter.h.
NXmlWriter | ( | NXmlDocument * | doc | ) |
Constructs a NXmlWriter object.
doc | A NXmlDocument object to be saved |
Definition at line 28 of file nxmlwriter.cpp.
References NException::XML, and NXmlException::XML_INIT_ERROR.
Save the XML document to a buffer.
buffer | A pointer to a NString object to store the XML document | |
indent | Whether to indent (true) or not (false). |
Definition at line 44 of file nxmlwriter.cpp.
References NXmlNode::getNode(), NXmlDocument::getRootNode(), NXmlDocument::getXmlDoc(), NString::set(), NException::XML, and NXmlException::XML_INIT_ERROR.
Save the XML document to a file.
file | A pointer to an open NFile object where the XML document will be saved | |
indent | Whether to indent (true) or not (false) |