debugXML

debugXML —

Synopsis




char*       (*xmlShellReadlineFunc)         (char *prompt);
struct      xmlShellCtxt;
typedef     xmlShellCtxtPtr;
int         (*xmlShellCmd)                  (xmlShellCtxtPtr ctxt,
                                             char *arg,
                                             xmlNodePtr node,
                                             xmlNodePtr node2);

Description

Details

xmlShellReadlineFunc ()

char*       (*xmlShellReadlineFunc)         (char *prompt);

This is a generic signature for the XML shell input function.

prompt: a string prompt
Returns :a string which will be freed by the Shell.

struct xmlShellCtxt

struct xmlShellCtxt {

    char *filename;
    xmlDocPtr doc;
    xmlNodePtr node;
    xmlXPathContextPtr pctxt;
    int loaded;
    FILE *output;
    xmlShellReadlineFunc input;
};

A debugging shell context. TODO: add the defined function tables.


xmlShellCtxtPtr

typedef xmlShellCtxt *xmlShellCtxtPtr;


xmlShellCmd ()

int         (*xmlShellCmd)                  (xmlShellCtxtPtr ctxt,
                                             char *arg,
                                             xmlNodePtr node,
                                             xmlNodePtr node2);

This is a generic signature for the XML shell functions.

ctxt: a shell context
arg: a string argument
node: a first node
node2: a second node
Returns :an int, negative returns indicating errors.