Re: [xml] Querry regarding xmlParserOption.

     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
option I will get warning callback.
The only way I found to suppress the warning is to set variable
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.
this can be fixed, sometime it's hard because the APIs don't let the
go though. So without more data it's basically impossible to answer.


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);

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
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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