diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-09-26 12:47:50 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-09-26 12:47:50 +0000 |
commit | 9475a352bdd1f15b1e0c53472a74938f9d5dc04e (patch) | |
tree | a29cfb017b1ed70d637fed469b6563ed06dc941c /testHTML.c | |
parent | 60942def6a83d48469d1d9fb41564b8450a939b4 (diff) | |
download | libxml2-9475a352bdd1f15b1e0c53472a74938f9d5dc04e.tar.gz |
added the same htmlRead APIs than their XML counterparts new parser
* HTMLparser.c testHTML.c xmllint.c include/libxml/HTMLparser.h:
added the same htmlRead APIs than their XML counterparts
* include/libxml/parser.h: new parser options, not yet implemented,
added an options field to the context.
* tree.c: patch from Shaun McCance to fix bug #123238 when ]]>
is found within a cdata section.
* result/noent/cdata2 result/cdata2 result/cdata2.rdr
result/cdata2.sax test/cdata2: add one more cdata test
Daniel
Diffstat (limited to 'testHTML.c')
-rw-r--r-- | testHTML.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -46,6 +46,7 @@ static int repeat = 0; static int noout = 0; static int push = 0; static char *encoding = NULL; +static int options = 0; xmlSAXHandler emptySAXHandlerStruct = { NULL, /* internalSubset */ @@ -725,7 +726,7 @@ parseAndPrintFile(char *filename) { fclose(f); } } else { - doc = htmlParseFile(filename, NULL); + doc = htmlReadFile(filename, NULL, options); } if (doc == NULL) { xmlGenericError(xmlGenericErrorContext, |