## debugXML

debugXML - Tree debugging APIs

Interfaces to a set of routines used for debugging the tree produced by the XML parser.

Author(s): Daniel Veillard

## Synopsis

    int	xmlDebugCheckDocument		(FILE * output,
    					 xmlDocPtr doc);
    void	xmlDebugDumpAttr		(FILE * output,
    					 xmlAttrPtr attr,
    					 int depth);
    void	xmlDebugDumpAttrList		(FILE * output,
    					 xmlAttrPtr attr,
    					 int depth);
    void	xmlDebugDumpDTD			(FILE * output,
    					 xmlDtdPtr dtd);
    void	xmlDebugDumpDocument		(FILE * output,
    					 xmlDocPtr doc);
    void	xmlDebugDumpDocumentHead	(FILE * output,
    					 xmlDocPtr doc);
    void	xmlDebugDumpEntities		(FILE * output,
    					 xmlDocPtr doc);
    void	xmlDebugDumpNode		(FILE * output,
    					 xmlNodePtr node,
    					 int depth);
    void	xmlDebugDumpNodeList		(FILE * output,
    					 xmlNodePtr node,
    					 int depth);
    void	xmlDebugDumpOneNode		(FILE * output,
    					 xmlNodePtr node,
    					 int depth);
    void	xmlDebugDumpString		(FILE * output,
    					 const xmlChar * str);

## Description

## Details

### xmlDebugCheckDocument ()

    int	xmlDebugCheckDocument		(FILE * output,
    					 xmlDocPtr doc)

Check the document for potential content problems, and output the errors to @output

`output`: | the FILE * for the output
`doc`: | the document
`Returns`: | the number of errors found

### xmlDebugDumpAttr ()

    void	xmlDebugDumpAttr		(FILE * output,
    					 xmlAttrPtr attr,
    					 int depth)

Dumps debug information for the attribute

`output`: | the FILE * for the output
`attr`: | the attribute
`depth`: | the indentation level.

### xmlDebugDumpAttrList ()

    void	xmlDebugDumpAttrList		(FILE * output,
    					 xmlAttrPtr attr,
    					 int depth)

Dumps debug information for the attribute list

`output`: | the FILE * for the output
`attr`: | the attribute list
`depth`: | the indentation level.

### xmlDebugDumpDTD ()

    void	xmlDebugDumpDTD			(FILE * output,
    					 xmlDtdPtr dtd)

Dumps debug information for the DTD

`output`: | the FILE * for the output
`dtd`: | the DTD

### xmlDebugDumpDocument ()

    void	xmlDebugDumpDocument		(FILE * output,
    					 xmlDocPtr doc)

Dumps debug information for the document, it's recursive

`output`: | the FILE * for the output
`doc`: | the document

### xmlDebugDumpDocumentHead ()

    void	xmlDebugDumpDocumentHead	(FILE * output,
    					 xmlDocPtr doc)

Dumps debug information concerning the document, not recursive

`output`: | the FILE * for the output
`doc`: | the document

### xmlDebugDumpEntities ()

    void	xmlDebugDumpEntities		(FILE * output,
    					 xmlDocPtr doc)

Dumps debug information for all the entities in use by the document

`output`: | the FILE * for the output
`doc`: | the document

### xmlDebugDumpNode ()

    void	xmlDebugDumpNode		(FILE * output,
    					 xmlNodePtr node,
    					 int depth)

Dumps debug information for the element node, it is recursive

`output`: | the FILE * for the output
`node`: | the node
`depth`: | the indentation level.

### xmlDebugDumpNodeList ()

    void	xmlDebugDumpNodeList		(FILE * output,
    					 xmlNodePtr node,
    					 int depth)

Dumps debug information for the list of element node, it is recursive

`output`: | the FILE * for the output
`node`: | the node list
`depth`: | the indentation level.

### xmlDebugDumpOneNode ()

    void	xmlDebugDumpOneNode		(FILE * output,
    					 xmlNodePtr node,
    					 int depth)

Dumps debug information for the element node, it is not recursive

`output`: | the FILE * for the output
`node`: | the node
`depth`: | the indentation level.

### xmlDebugDumpString ()

    void	xmlDebugDumpString		(FILE * output,
    					 const xmlChar * str)

Dumps information about the string, shorten it if necessary

`output`: | the FILE * for the output
`str`: | the string