| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

xml_save_string

#include "sflxmll.h"
char *
xml_save_string (
    XML_ITEM *item)

Synopsis

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.

Source Code - (sflxmll.c)

{
    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);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation