Functions | |
int | ksFromXMLfile (KeySet *ks, const char *filename) |
Given an XML filename , open it, validate schema, process nodes, convert and save it in the ks KeySet. | |
int | ksFromXML (KeySet *ks, int fd) |
Given a file descriptor (that can be stdin ) for an XML file, validate schema, process nodes, convert and save it in the ks KeySet. |
To use them:
#include <kdbtools.h>
Here are some functions that are in a separate library because they depend on non-basic libraries as libxml. Use the kdbtools library if your program won't be installed in /bin, or is not essential in early boot stages.
int ksFromXMLfile | ( | KeySet * | ks, | |
const char * | filename | |||
) |
Given an XML filename
, open it, validate schema, process nodes, convert and save it in the ks
KeySet.
Currently, the XML file can have many root <keyset>
and <key>
nodes. They will all be reduced to simple keys returned in ks
.
Definition at line 462 of file kdbtools.c.
Referenced by commandEdit(), commandImport(), and ksFromXML().