MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlShellPrintNodeCtxt

Function xmlShellPrintNodeCtxt

ThirdParty/libxml2/vtklibxml2/debugXML.c:1872–1892  ·  view source on GitHub ↗

* xmlShellPrintNodeCtxt: * @ctxt : a non-null shell context * @node : a non-null node to print to the output FILE * * Print node to the output FILE */

Source from the content-addressed store, hash-verified

1870 * Print node to the output FILE
1871 */
1872static void
1873xmlShellPrintNodeCtxt(xmlShellCtxtPtr ctxt,xmlNodePtr node)
1874{
1875 FILE *fp;
1876
1877 if (!node)
1878 return;
1879 if (ctxt == NULL)
1880 fp = stdout;
1881 else
1882 fp = ctxt->output;
1883
1884 if (node->type == XML_DOCUMENT_NODE)
1885 xmlDocDump(fp, (xmlDocPtr) node);
1886 else if (node->type == XML_ATTRIBUTE_NODE)
1887 xmlDebugDumpAttrList(fp, (xmlAttrPtr) node, 0);
1888 else
1889 xmlElemDump(fp, node->doc, node);
1890
1891 fprintf(fp, "\n");
1892}
1893
1894/**
1895 * xmlShellPrintNode:

Callers 2

xmlShellPrintNodeFunction · 0.85

Calls 4

xmlDocDumpFunction · 0.85
xmlDebugDumpAttrListFunction · 0.85
xmlElemDumpFunction · 0.85
fprintfFunction · 0.85

Tested by

no test coverage detected