diff options
Diffstat (limited to 'doc/examples/tree1.c')
-rw-r--r-- | doc/examples/tree1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/tree1.c b/doc/examples/tree1.c index 8a303e2..8644cf1 100644 --- a/doc/examples/tree1.c +++ b/doc/examples/tree1.c @@ -64,10 +64,10 @@ main(int argc, char **argv) LIBXML_TEST_VERSION /*parse the file and get the DOM */ - doc = xmlParseFile(argv[1]); + doc = xmlReadFile(argv[1], NULL, 0); if (doc == NULL) { - printf("error: could not parse file file.xml\n"); + printf("error: could not parse file %s\n", argv[1]); } /*Get the root element node */ |