mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
- cleaned up the FTP module, did the API, extracted docs
- regenerated and updated the docs
This commit is contained in:
12
debugXML.c
12
debugXML.c
@ -673,7 +673,17 @@ xmlShellDir(xmlShellCtxtPtr ctxt, char *arg, xmlNodePtr node,
|
||||
int
|
||||
xmlShellCat(xmlShellCtxtPtr ctxt, char *arg, xmlNodePtr node,
|
||||
xmlNodePtr node2) {
|
||||
xmlElemDump(stdout, ctxt->doc, node);
|
||||
if (ctxt->doc->type == XML_HTML_DOCUMENT_NODE) {
|
||||
if (node->type == XML_HTML_DOCUMENT_NODE)
|
||||
htmlDocDump(stdout, (htmlDocPtr) node);
|
||||
else
|
||||
htmlNodeDump(stdout, ctxt->doc, node);
|
||||
} else {
|
||||
if (node->type == XML_DOCUMENT_NODE)
|
||||
xmlDocDump(stdout, (xmlDocPtr) node);
|
||||
else
|
||||
xmlElemDump(stdout, ctxt->doc, node);
|
||||
}
|
||||
printf("\n");
|
||||
return(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user