| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflxmll.h" int xml_load_file (XML_ITEM **item, const char *path, const char *filename, Bool allow_extended)
Loads the contents of an XML file into a given XML tree, or a new XML tree if none was specified. The XML data is not checked against a DTD. Returns one of XML_NOERROR, XML_FILEERROR, XML_LOADERROR. If the parameter `allow_extended' is TRUE then the file may contain more than one XML item. The following attributes are defined in the root item of the XML tree.
filename | Name of the XML input file |
filetime | Modification time of the file, "HHMMSSCC" |
filedate | Modification date of input file, "YYYYMMDD" |
{ ASSERT (filename); pname = filename; ppath = path; extended = allow_extended; if (! *item) { *item = xml new (NULL, "root", ""); ASSERT (*item); } root = *item; /* Current line w/space for EOL */ xmlline = mem_alloc (LINE_MAX + 2); line_nbr = 0; the_next_event = file_event; xml_start_dialog (); mem_free (xmlline); return (feedback); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |