Debian Codegraph @

include/libxml/debugXML.h

raw
1 /**
2 * @file
3 *
4 * @brief Tree debugging APIs
5 *
6 * Interfaces to a set of routines used for debugging the tree
7 * produced by the XML parser.
8 *
9 * @copyright See Copyright for the status of this software.
10 *
11 * @author Daniel Veillard
12 */
13
14 #ifndef __DEBUG_XML__
15 #define __DEBUG_XML__
16 #include <stdio.h>
17 #include <libxml/xmlversion.h>
18 #include <libxml/tree.h>
19
20 #ifdef LIBXML_DEBUG_ENABLED
21
22 #include <libxml/xpath.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 /*
29 * The standard Dump routines.
30 */
31 XMLPUBFUN void
32 xmlDebugDumpString (FILE *output,
33 const xmlChar *str);
34 XMLPUBFUN void
35 xmlDebugDumpAttr (FILE *output,
36 xmlAttr *attr,
37 int depth);
38 XMLPUBFUN void
39 xmlDebugDumpAttrList (FILE *output,
40 xmlAttr *attr,
41 int depth);
42 XMLPUBFUN void
43 xmlDebugDumpOneNode (FILE *output,
44 xmlNode *node,
45 int depth);
46 XMLPUBFUN void
47 xmlDebugDumpNode (FILE *output,
48 xmlNode *node,
49 int depth);
50 XMLPUBFUN void
51 xmlDebugDumpNodeList (FILE *output,
52 xmlNode *node,
53 int depth);
54 XMLPUBFUN void
55 xmlDebugDumpDocumentHead(FILE *output,
56 xmlDoc *doc);
57 XMLPUBFUN void
58 xmlDebugDumpDocument (FILE *output,
59 xmlDoc *doc);
60 XMLPUBFUN void
61 xmlDebugDumpDTD (FILE *output,
62 xmlDtd *dtd);
63 XMLPUBFUN void
64 xmlDebugDumpEntities (FILE *output,
65 xmlDoc *doc);
66
67 /****************************************************************
68 * *
69 * Checking routines *
70 * *
71 ****************************************************************/
72
73 XMLPUBFUN int
74 xmlDebugCheckDocument (FILE * output,
75 xmlDoc *doc);
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif /* LIBXML_DEBUG_ENABLED */
82 #endif /* __DEBUG_XML__ */