diff options
author | Daniel Veillard <veillard@src.gnome.org> | 1999-08-10 19:04:08 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 1999-08-10 19:04:08 +0000 |
commit | b05deb7f5fa01da1cbc54f65199eff1c5421ec00 (patch) | |
tree | 88b82954fb85467ffd1ddad2d7dcaba7349bc32d /testXPath.c | |
parent | 6a6ccc1de6c19ff3c77c10491d5f8b65759cff4a (diff) | |
download | libxml2-b05deb7f5fa01da1cbc54f65199eff1c5421ec00.tar.gz |
Huge commit: 1.5.0, XML validation, Xpath, bugfixes, examples .... Daniel
Diffstat (limited to 'testXPath.c')
-rw-r--r-- | testXPath.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testXPath.c b/testXPath.c index 1342ffbf..27e17ab7 100644 --- a/testXPath.c +++ b/testXPath.c @@ -81,7 +81,12 @@ void xmlXPAthDebugDumpNodeSet(FILE *output, xmlNodeSetPtr cur) { fprintf(output, "Set contains %d nodes:\n", cur->nodeNr); for (i = 0;i < cur->nodeNr;i++) { fprintf(output, "%d", i + 1); - xmlDebugDumpOneNode(output, cur->nodeTab[i], 2); + if (cur->nodeTab[i] == NULL) + fprintf(output, " NULL\n"); + else if (cur->nodeTab[i]->type == XML_DOCUMENT_NODE) + fprintf(output, " /\n"); + else + xmlDebugDumpOneNode(output, cur->nodeTab[i], 2); } } |