libUPnP  1.6.17
Functions
ixmldebug.c File Reference
#include "autoconfig.h"
#include "ixmldebug.h"
#include <stdarg.h>
#include <stdio.h>
Include dependency graph for ixmldebug.c:

Functions

void IxmlPrintf (const char *DbgFileName, int DbgLineNo, const char *FunctionName, const char *FmtStr,...)
 Prints the debug statement either on the standard output or log file along with the information from where this debug statement is coming.
void printNodes (IXML_Node *tmpRoot, int depth)
 Print the node names and values of a XML tree.

Detailed Description


Function Documentation

void IxmlPrintf ( const char *  DbgFileName,
int  DbgLineNo,
const char *  FunctionName,
const char *  FmtStr,
  ... 
)

Prints the debug statement either on the standard output or log file along with the information from where this debug statement is coming.

Parameters:
[in]DbgFileNameThe file name, usually __FILE__.
[in]DbgLineNoThe line number, usually __LINE__ or a variable that got the __LINE__ at the appropriate place.
[in]FunctionNameThe function name.
[in]FmtStrPrintf like format specification.

Referenced by ixmlDomTreetoString(), ixmlPrintDomTree(), ixmlPrintDomTreeRecursive(), Parser_copyToken(), Parser_getChar(), Parser_getNextNode(), Parser_processAttribute(), Parser_processContent(), Parser_processETag(), Parser_UTF8ToInt(), Parser_xmlNamespace(), and printNodes().

void printNodes ( IXML_Node tmpRoot,
int  depth 
)

Print the node names and values of a XML tree.

Parameters:
[in]tmpRootThe root of the tree to print.
[in]depthThe depth to print.

References DOMString, ixmlNode_getChildNodes(), ixmlNode_getNodeName(), ixmlNode_getNodeType(), ixmlNode_getNodeValue(), ixmlNodeList_item(), IxmlPrintf(), and printNodes().

Referenced by printNodes().