+static int isdir(const char *path)
+{
+ struct stat st;
+
+ if (stat(path, &st) < 0)
+ {
+ yaz_log(YLOG_FATAL|YLOG_ERRNO, "%s", path);
+ exit(1);
+ }
+ return st.st_mode & S_IFDIR;
+}
+
+static void read_settings_file(const char *path, void *context,
+ void (*fun)(void *context, struct setting *set))
+{
+ xmlDoc *doc = xmlParseFile(path);
+ xmlNode *n;
+ //xmlChar *namea, *targeta, *valuea, *usera;
+
+ if (!doc)
+ {
+ yaz_log(YLOG_FATAL, "Failed to parse %s", path);
+ exit(1);
+ }
+ n = xmlDocGetRootElement(doc);
+
+ for (n = n->children; n; n = n->next)
+ {
+ fprintf(stderr, "Node name: %s\n", n->name);
+ }
+}
+