|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflxmll.h"
int
xml_seems_to_be (const char *path,
const char *filename)
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.
{
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);
}
| | << | < | > | >> |
|