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