Main Page | Modules | Data Structures | File List | Data Fields

KDB Tools :: Library with some high-level functions

General methods mainly for XML manipulation. More...

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.

Detailed Description

General methods mainly for XML manipulation.

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.


Function Documentation

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 425 of file kdbtools.c.

Referenced by commandEdit(), commandImport(), and ksFromXML().


Generated on Sun Feb 19 10:05:37 2006 for Elektra Project by  doxygen 1.3.9.1