>
>
> Hi,
> I am using option XML_PARSE_NOWARNING to suppress the warning
messages whi
>> ch I receive during parsing. But this seems not working, even after I use
this
> >option I will get warning callback.
>> The only way I found to suppress the warning is to set variable
xmlGetWarningsD
> >efaultValue to 0 before parsing. This will suppress warning even if I
have not
> >used the option XML_PARSE_NOWARNING during parsing.
> >I feel this should be corrected.
> >Let me know if there are any issues with my usage.
> Hum, it's a bit unclear how and when you use the option, and what pops
> out the warning. Sometime the parser calls something else directly or
> indirectly and you get a warning but not really related to parsing.
Sometime
> this can be fixed, sometime it's hard because the APIs don't let the
option
> go though. So without more data it's basically impossible to answer.
>Daniel
Find the scenario below.
options = 0;
options |= (XML_PARSE_NOENT);
options |= (XML_PARSE_NONET);
options |= (XML_PARSE_NOBLANKS);
options |= (XML_PARSE_DTDLOAD);
options |= (XML_PARSE_DTDATTR);
options |= (XML_PARSE_NOWARNING);
ParserCtxt = xmlCreateMemoryParserCtxt(DocBuffer, DocBufferSize);
xmlDetectSAX2Extn(ParserCtxt);
xmlCtxtUseOptions(ParserCtxt,options);
xmlParseDocument(ParserCtxt);
if I parse the document which will generate warning, then I get worning even
though I have set the option XML_PARSE_NOWARNING.
Hope this will answer your question regarding usage scenario.
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
[EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml