summaryrefslogtreecommitdiff
path: root/testXPath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-03-25 09:35:49 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-03-25 09:35:49 +0000
commitebe25d492075cb8fa141027e7627dfdfdd0262b8 (patch)
treef1e3713920b22b1bc5b765add58e706322a2ea43 /testXPath.c
parent520f17ad9afb01b21cfd3c441b6667f1be7f9bdc (diff)
downloadlibxml2-ebe25d492075cb8fa141027e7627dfdfdd0262b8.tar.gz
applied patch from Mark Vadoc avoiding using xmlParse* option and use
* debugXML.c testXPath.c xmllint.c xmlschemastypes.c: applied patch from Mark Vadoc avoiding using xmlParse* option and use xmlRead* instead * win32/Makefile.bcb: patch to Borland C++ builder from Eric Zurcher to avoid problems with some pathnames. Daniel
Diffstat (limited to 'testXPath.c')
-rw-r--r--testXPath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testXPath.c b/testXPath.c
index bdb7358b..8086a810 100644
--- a/testXPath.c
+++ b/testXPath.c
@@ -178,9 +178,9 @@ int main(int argc, char **argv) {
}
if (document == NULL) {
if (filename == NULL)
- document = xmlParseDoc(buffer);
+ document = xmlReadDoc(buffer,NULL,NULL,0);
else
- document = xmlParseFile(filename);
+ document = xmlReadFile(filename,NULL,0);
}
for (i = 1; i < argc ; i++) {
if ((!strcmp(argv[i], "-i")) || (!strcmp(argv[i], "--input"))) {