|Return||An XML representation of the data contained within the object|
|Argument - bIncludeDocHeader||If this is true then then header <?xml version="1.0" ?> is applied to the output (making it a proper XML document as opposed to a snippet.)|
|Argument - bFormatXML||Indicates how the XML should be formatted.
true to turn on indenting, false for no formatting (single line output).
|Argument - eolType||Indicates the type of End of line token to use, CR or LFCR. Defaults to CR.|
|Argument - context||
The CXmlSerializationContext object controls the way in which XML is serialized/de-serialized. Its main role is to control the way in which validation is performed and which namespaces are output.
Note: If you are writing a multithreaded app it is highly recommended that you use a different instance of this class on each thread, as access to the static instance is not synchronized. Although read only operations to the static instance (CXmlSerializationContext::Default) of the class are thread safe, if the global instance CXmlSerializationContext::Default is modified, then this could potentially cause threading problems.
|Description||Returns an XML string.|
It will raise an exception if the XML within the object is not invalid, i.e. invalid number of entries in a collection.