add debug messages

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6438 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-12-30 22:36:47 +00:00
parent 58bbb21a93
commit 546694b975

View File

@ -449,15 +449,22 @@ dom_tree_to_text(xmlNodePtr tree)
gchar *temp;
g_return_val_if_fail(tree, NULL);
/* no nodes means it's an empty string text */
if(!tree->xmlChildrenNode)
{
PINFO ("No children");
return g_strdup("");
}
temp = xmlNodeListGetString (NULL, tree->xmlChildrenNode, TRUE);
if (!temp) return NULL;
if (!temp)
{
PINFO ("Null string");
return NULL;
}
PINFO ("node string is >>>%s<<<\n", temp);
result = g_strdup (temp);
xmlFree (temp);
return result;