14 const char* FunctionName,
const char* FmtStr, ...) {
18 fprintf(fp,
"(%s::%s), line %d", DbgFileName, FunctionName, DbgLineNo);
21 va_start(ArgList, FmtStr);
22 vfprintf(fp, FmtStr, ArgList);
35 unsigned short NodeType;
39 for (i = 0; i < 100; ++i) {
41 if (ChildNode1 == NULL) {
50 "DEPTH-%2d-IXML_Node Type %d, "
51 "IXML_Node Name: %s, IXML_Node Value: %s\n",
52 depth, NodeType, NodeName, NodeValue);
Data structure common to all types of nodes.
Data structure representing a list of nodes.
PUPNP_Api unsigned short ixmlNode_getNodeType(IXML_Node *nodeptr)
Retrieves the type of a Node. Note that not all possible return values are actually implemented.
#define DOMString
The type of DOM strings.
PUPNP_Api const DOMString ixmlNode_getNodeValue(IXML_Node *nodeptr)
Returns the value of the Node as a string.
PUPNP_Api const DOMString ixmlNode_getNodeName(IXML_Node *nodeptr)
Returns the name of the Node, depending on what type of Node it is, in a read-only string.
PUPNP_Api IXML_NodeList * ixmlNode_getChildNodes(IXML_Node *nodeptr)
Retrieves the list of children of a Node in a NodeList structure.
PUPNP_Api IXML_Node * ixmlNodeList_item(IXML_NodeList *nList, unsigned long index)
Retrieves a Node from a NodeList specified by a numerical index.
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 ...
void printNodes(IXML_Node *tmpRoot, int depth)
Print the node names and values of a XML tree.
Auxiliar routines to aid debugging.