NXmlWriter Class Reference

NXmlWriter class is used to output a NXmlDocument to a buffer or a file. More...

List of all members.

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.


Detailed Description

NXmlWriter class is used to output a NXmlDocument to a buffer or a file.
Examples:

ex_nxmlwrite.cpp.

Definition at line 43 of file nxmlwriter.h.


Constructor & Destructor Documentation

NXmlWriter ( NXmlDocument doc  ) 

Constructs a NXmlWriter object.

Parameters:
doc A NXmlDocument object to be saved

Definition at line 28 of file nxmlwriter.cpp.

References NException::XML, and NXmlException::XML_INIT_ERROR.


Member Function Documentation

nint32 dump ( NString buffer,
bool  indent 
)

Save the XML document to a buffer.

Parameters:
buffer A pointer to a NString object to store the XML document
indent Whether to indent (true) or not (false).
Returns:
The number of bytes written
Examples:
ex_nxmlwrite.cpp.

Definition at line 44 of file nxmlwriter.cpp.

References NXmlNode::getNode(), NXmlDocument::getRootNode(), NXmlDocument::getXmlDoc(), NString::set(), NException::XML, and NXmlException::XML_INIT_ERROR.

nint32 dump ( NFile file,
bool  indent 
)

Save the XML document to a file.

Parameters:
file A pointer to an open NFile object where the XML document will be saved
indent Whether to indent (true) or not (false)
Returns:
The number of bytes written


The documentation for this class was generated from the following files:
Generated on Wed Mar 5 23:10:37 2008 for NemesisUtilitiesSystem by  doxygen 1.5.4