After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 130762 - Unwanted parser warnings
Unwanted parser warnings
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.6.3
Other Linux
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2004-01-07 10:42 UTC by Emmanuel Saracco
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Emmanuel Saracco 2004-01-07 10:42:29 UTC
specifying HTML_PARSE_NOWARNING and HTML_PARSE_NOERROR options do not
prevent parser from displaying some warnings.

* unwanted output sample:
-----
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
-----

* code sample:
-----
  htmlParserCtxtPtr ctxt = NULL;
  htmlDocPtr doc = NULL;

  ctxt = htmlCreateMemoryParserCtxt (buffer, strlen (buffer));
  if (ctxt != NULL)
  {  
    htmlCtxtUseOptions (ctxt, HTML_PARSE_NOWARNING | HTML_PARSE_NOERROR);    
    htmlParseDocument (ctxt);  

    doc = ctxt->myDoc;  
    if (doc != NULL && doc->children != NULL)  
    {    
      html_parser_parse (doc->children);  
    }  

    htmlFreeParserCtxt (ctxt);
}
-----
Comment 1 Daniel Veillard 2004-02-25 12:35:57 UTC
That should be fixed in CVS, please update and check,

  thanks,

Daniel
Comment 2 Daniel Veillard 2004-03-25 11:28:52 UTC
This should be closed by release of libxml2-2.6.8,
                                                                                
  thanks,
                                                                                
Daniel