mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
integrating Keith Isdale patches for the XSLT debugger interfaces. Some
* include/libxml/debugXML.h debugXML.c tree.c: integrating Keith Isdale patches for the XSLT debugger interfaces. Some cleanup Daniel
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Thu Oct 11 11:10:31 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* include/libxml/debugXML.h debugXML.c tree.c: integrating
|
||||||
|
Keith Isdale patches for the XSLT debugger interfaces. Some
|
||||||
|
cleanup
|
||||||
|
|
||||||
Thu Oct 11 08:44:01 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
Thu Oct 11 08:44:01 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* win32/Makefile.mingw: update from Tobias Peters for 2.4.5
|
* win32/Makefile.mingw: update from Tobias Peters for 2.4.5
|
||||||
|
1258
debugXML.c
1258
debugXML.c
File diff suppressed because it is too large
Load Diff
@ -47,6 +47,12 @@ void xmlDebugDumpDTD (FILE *output,
|
|||||||
void xmlDebugDumpEntities (FILE *output,
|
void xmlDebugDumpEntities (FILE *output,
|
||||||
xmlDocPtr doc);
|
xmlDocPtr doc);
|
||||||
|
|
||||||
|
void xmlLsOneNode (FILE *output, xmlNodePtr node);
|
||||||
|
int xmlLsCountNode (xmlNodePtr node);
|
||||||
|
|
||||||
|
const char *xmlBoolToText (int bool);
|
||||||
|
long xmlGetLineNo (xmlNodePtr node);
|
||||||
|
|
||||||
/****************************************************************
|
/****************************************************************
|
||||||
* *
|
* *
|
||||||
* The XML shell related structures and functions *
|
* The XML shell related structures and functions *
|
||||||
@ -97,13 +103,57 @@ typedef int (* xmlShellCmd) (xmlShellCtxtPtr ctxt,
|
|||||||
xmlNodePtr node,
|
xmlNodePtr node,
|
||||||
xmlNodePtr node2);
|
xmlNodePtr node2);
|
||||||
|
|
||||||
|
void xmlShellPrintXPathError (int errorType, const char* arg);
|
||||||
|
void xmlShellPrintNode (xmlNodePtr node);
|
||||||
|
void xmlShellPrintXPathResult(xmlXPathObjectPtr list);
|
||||||
|
int xmlShellList (xmlShellCtxtPtr ctxt,
|
||||||
|
char *arg,
|
||||||
|
xmlNodePtr node,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
int xmlShellBase (xmlShellCtxtPtr ctxt,
|
||||||
|
char *arg,
|
||||||
|
xmlNodePtr node,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
int xmlShellDir (xmlShellCtxtPtr ctxt,
|
||||||
|
char *arg,
|
||||||
|
xmlNodePtr node,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
int xmlShellCat (xmlShellCtxtPtr ctxt,
|
||||||
|
char *arg,
|
||||||
|
xmlNodePtr node,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
int xmlShellLoad (xmlShellCtxtPtr ctxt,
|
||||||
|
char *filename,
|
||||||
|
xmlNodePtr node,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
int xmlShellWrite (xmlShellCtxtPtr ctxt,
|
||||||
|
char *filename,
|
||||||
|
xmlNodePtr node,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
int xmlShellSave (xmlShellCtxtPtr ctxt,
|
||||||
|
char *filename,
|
||||||
|
xmlNodePtr node,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
int xmlShellValidate (xmlShellCtxtPtr ctxt,
|
||||||
|
char *dtd,
|
||||||
|
xmlNodePtr node,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
int xmlShellDu (xmlShellCtxtPtr ctxt,
|
||||||
|
char *arg,
|
||||||
|
xmlNodePtr tree,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
int xmlShellPwd (xmlShellCtxtPtr ctxt,
|
||||||
|
char *buffer,
|
||||||
|
xmlNodePtr node,
|
||||||
|
xmlNodePtr node2);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The Shell interface.
|
* The Shell interface.
|
||||||
*/
|
*/
|
||||||
void xmlShell (xmlDocPtr doc,
|
void xmlShell (xmlDocPtr doc,
|
||||||
char *filename,
|
char *filename,
|
||||||
xmlShellReadlineFunc input,
|
xmlShellReadlineFunc input,
|
||||||
FILE *output);
|
FILE *output);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
5
tree.c
5
tree.c
@ -5479,6 +5479,10 @@ xmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, int level,
|
|||||||
xmlDumpElementDecl(buf, (xmlElementPtr) cur);
|
xmlDumpElementDecl(buf, (xmlElementPtr) cur);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (cur->type == XML_ATTRIBUTE_NODE){
|
||||||
|
xmlAttrDump(buf, doc, (xmlAttrPtr)cur);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (cur->type == XML_ATTRIBUTE_DECL) {
|
if (cur->type == XML_ATTRIBUTE_DECL) {
|
||||||
xmlDumpAttributeDecl(buf, (xmlAttributePtr) cur);
|
xmlDumpAttributeDecl(buf, (xmlAttributePtr) cur);
|
||||||
return;
|
return;
|
||||||
@ -5653,6 +5657,7 @@ xmlElemDump(FILE *f, xmlDocPtr doc, xmlNodePtr cur) {
|
|||||||
"xmlElemDump : doc == NULL\n");
|
"xmlElemDump : doc == NULL\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
buf = xmlBufferCreate();
|
buf = xmlBufferCreate();
|
||||||
if (buf == NULL) return;
|
if (buf == NULL) return;
|
||||||
if ((doc != NULL) &&
|
if ((doc != NULL) &&
|
||||||
|
Reference in New Issue
Block a user