|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflxmll.h"
char *
xml_save_string (
XML_ITEM *item)
Saves an XML tree to a string. Returns a freshly-allocated string containing the XML tree, or NULL if there was insufficient memory to allocate a new string.
{
size_t
xml_size;
char
*xml_string;
ASSERT (item);
init_charmaps (); /* Initialise character maps */
xml_size = xml_item_size (item);
xml_string = mem_alloc (xml_size + 1000);
if (xml_string)
xml_save_string_item (xml_string, item);
return (xml_string);
}
| | << | < | > | >> |
|