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

 

xml_seems_to_be

#include "sflxmll.h"
int
xml_seems_to_be (const char *path,
                 const char *filename)

Synopsis

Reads the first line of a file. Returns XML_NOERROR if file is found and has a valid XML header, XML_FILEERROR if the file could not be opened and XML_LOADERROR if the first line is not an XML header.

Source Code - (sflxmll.c)

{
    ASSERT (filename);
    pname = filename;
    ppath = path;

    /*  Current line w/space for EOL                                         */
    xmlline = mem_alloc (LINE_MAX + 2);

    the_next_event = looks_like_xml_event;
    xml_start_dialog ();
    mem_free (xmlline);
    return (feedback);
}

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