GNOME Bugzilla – Bug 664525
BUG on function xmlSchemaValidateOneElement of Xmlschema.c
Last modified: 2021-07-05 13:26:03 UTC
Deer Daniel: Recently, I find the function xmlSchemaValidateOneElement behaves in the same way as function xmlSchemaValidateDoc which validates the xml doc from the root element. While looking up the source code, I find that function xmlSchemaVDocWalk which has been indirectly called by function xmlSchemaValidateOneElement resets element validationRoot of struct xmlSchemaValidCtxtPtr vctxt(line 27800 in xmlSchemas.c under version 2.7.8). However the validationRoot element has been initalized as the specified xml doc element by xmlSchemaValidateOneElement(line 28079 in xmlSchemas.c under version 2.7.8). The content of URL http://mail.gnome.org/archives/xml/2009-May/msg00016.html indicates that after removing clause: vctxt->validationRoot = valRoot; function xmlSchemaValidateOneElement gets a desire results. Could you please fix the bug (I think it is) in the next release?
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.