Zen API | Contents | Reference | Previous | Up | Next

zXml_ToString
zXml functions
C

    zStatus zXml_ToString(zXml xml, zChar* buffer, z32u* written);

Parameters

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.

Description

Exports the XML document to a null-terminated character array.

Remarks

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.

File

zXml.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.
Contents | Reference