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

 

xml_load_string

#include "sflxmll.h"
int
xml_load_string (XML_ITEM  **item,
                 const char *xmlstring,
                 Bool allow_extended)

Synopsis

Loads an XML string into a new XML tree. The XML data is not checked against a DTD. See xml load() for details.

Source Code - (sflxmll.c)

{
    ASSERT (xmlstring);
    pname = NULL;
    ppath = NULL;

    xmltext  = (char *) xmlstring;
    xmlline  = xmltext;

    extended = allow_extended;

    if (! *item)
      {
        *item = xml new (NULL, "root", "");
        ASSERT (*item);
      }
    root = *item;

    char_nbr = 0;                       /*  Use string as input line         */
    line_nbr = 1;

    the_next_event = string_event;

    xml_start_dialog ();
    return (feedback);
}

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