Re: [xml] [HTMLparser] unwanted warnings



On Wed, 2004-01-07 at 12:49, Emmanuel Saracco wrote:
hi,

how to force the HTMLparser to not output warnings like:

-----
element form: validity error : ID search already defined
element select: validity error : ID rhpath already defined
element map: validity error : ID introLinks already defined
element a: validity error : ID technologies already defined
element a: validity error : ID news already defined
element a: validity error : ID search already defined
-----
?

I use options HTML_PARSE_NOWARNING and HTML_PARSE_NOERROR:

-----
htmlCtxtUseOptions (ctxt, HTML_PARSE_NOWARNING | HTML_PARSE_NOERROR);
-----

but it still output those messages.

Can you post a small code fragment showing how you are trying to parse
the document? In particular, it would be good to know what function you
are calling (with the precise parameters) to parse the document.

Note that if you are using a function like htmlCtxtReadMemory() to reuse
a context, you still need to pass in HTML_PARSE_NOWARNING |
HTML_PARSE_NOERROR to the options parameter of that function.
Internally, the function resets your context (including restoring the
error and warning functions) and it then uses the 'options' to set the
right parameters just before parsing.

Cheers,
Malcolm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]