diff options
author | Csaba László <Laszlo.Csaba@noreg.hu> | 2013-03-18 15:30:00 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2013-03-18 15:30:00 +0800 |
commit | 1f6c42cffd8db69fd0243b2baa74104d66a3b05e (patch) | |
tree | e5c8c56d9d4599c5d9e89980a32e04585afa09f0 /doc | |
parent | cff2546f13503ac028e4c1f63c7b6d85f2f2d777 (diff) | |
download | android_external_libxml2-1f6c42cffd8db69fd0243b2baa74104d66a3b05e.tar.gz android_external_libxml2-1f6c42cffd8db69fd0243b2baa74104d66a3b05e.tar.bz2 android_external_libxml2-1f6c42cffd8db69fd0243b2baa74104d66a3b05e.zip |
Fix an old bug in xmlSchemaValidateOneElement
Recently I have run into the very same problem Tiberius Duluman did back in
Wed, 13 May 2009 15:56:55 +0300 ([xml] Bug in xmlSchemaValidateOneElement
function). Now I can proof now that his problem is a valid problem. I checked
the latest available version of xmlschemas.c (2.9.0.) and the problem is still
there!
I think I have found a solution to the problem which I'd like proof with you:
My quick solution to the problem is to replace line 27849 in
xmlschemas.c
(v2.9.0.) in function xmlSchemaVDocWalk
valRoot = xmlDocGetRootElement(vctxt->doc);
with this one:
valRoot = vctxt->validationRoot ? vctxt->validationRoot : xmlDocGetRootElement(vctxt->doc);
Currently I'm using version 2.7.8. in Windows and this change seems to solve
the problem.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions