zStatus zXml_ToString(zXml xml, zChar* buffer, z32u* written);
|
Parameters |
Description |
|
zXml xml |
XML document object. |
|
zChar* buffer |
Buffer to receive the XML content, or zNULL (see notes below). |
|
z32u* written |
Number of characters written to the buffer, including the null terminator. |
Exports the XML document to a null-terminated character array.
In order to determine the required size of a buffer large enough to contain the exported characters, call zXml_Write with zNULL as the buffer argument. When the call completes, the written argument will report the required buffer size, including the null terminator. After allocating the buffer, call zXml_Write a second time to write the characters to the buffer.
zXml.h