![]() | ![]() | ![]() | Gnome XML Library Reference Manual | ![]() |
---|
void xmlDebugDumpString (FILE *output, const xmlChar *str); void xmlDebugDumpAttr (FILE *output, xmlAttrPtr attr, int depth); void xmlDebugDumpAttrList (FILE *output, xmlAttrPtr attr, int depth); void xmlDebugDumpOneNode (FILE *output, xmlNodePtr node, int depth); void xmlDebugDumpNode (FILE *output, xmlNodePtr node, int depth); void xmlDebugDumpNodeList (FILE *output, xmlNodePtr node, int depth); void xmlDebugDumpDocumentHead (FILE *output, xmlDocPtr doc); void xmlDebugDumpDocument (FILE *output, xmlDocPtr doc); void xmlDebugDumpEntities (FILE *output, xmlDocPtr doc); void xmlLsOneNode (FILE *output, xmlNodePtr node); char* (*xmlShellReadlineFunc) (char *prompt); struct xmlShellCtxt; typedef xmlShellCtxtPtr; int (*xmlShellCmd) (xmlShellCtxtPtr ctxt, char *arg, xmlNodePtr node, xmlNodePtr node2); void xmlShell (xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,FILE *output);
void xmlDebugDumpAttr (FILE *output, xmlAttrPtr attr, int depth);
output : | |
attr : | |
depth : |
|
void xmlDebugDumpAttrList (FILE *output, xmlAttrPtr attr, int depth);
output : | |
attr : | |
depth : |
|
void xmlDebugDumpOneNode (FILE *output, xmlNodePtr node, int depth);
output : | |
node : | |
depth : |
|
void xmlDebugDumpNode (FILE *output, xmlNodePtr node, int depth);
output : | |
node : | |
depth : |
|
void xmlDebugDumpNodeList (FILE *output, xmlNodePtr node, int depth);
output : | |
node : | |
depth : |
|
void xmlDebugDumpDocumentHead (FILE *output, xmlDocPtr doc);
output : | |
doc : |
|
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 { char *filename; xmlDocPtr doc; xmlNodePtr node; xmlXPathContextPtr pctxt; int loaded; FILE *output; xmlShellReadlineFunc input; };
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 |
void xmlShell (xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,FILE *output);
Implements the XML shell This allow to load, validate, view, modify and save a document using a environment similar to a UNIX commandline.
doc : | the initial document |
filename : | the output buffer |
input : | the line reading function |
output : | the output FILE* |
<<< encoding | xmlmemory >>> |