[Bug 6329] Inconsistent XML well-formedness results

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6329





--- Comment #5 from Olivier Thereaux <ot@w3.org>  2008-12-22 16:39:43 ---
I am finding incompatibilities between libxml2 and XML::LibXML, two lower-lever
libraries used by the validators, but only for certain versions. This is very
puzzling, to say the least. 

Below, the script I used to test on  various machines, and a number of results.
The results saying "attributes construct error" are the proper, expected ones.

I will try and contact the maintainer(s) for XML::LibXML, in hope that they can
be of help.


#!/usr/bin/perl
use 5.008; use strict; use warnings; use utf8; use XML::LibXML qw();
my $dotted=XML::LibXML::LIBXML_DOTTED_VERSION;
print "XML::LibXML Version: $XML::LibXML::VERSION\nlibxml2 Version:
$dotted\n\n";
XML::LibXML->new()->parse_string('<foo attr1="value1"attr2="value2" />');



XML::LibXML Version: 1.66
libxml2 Version: 2.6.16

:1: parser error : attributes construct error
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Couldn't find end of Start Tag foo line 1
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Extra content at the end of the document
<foo attr1="value1"attr2="value2" />
                   ^ at testlibxml.pl line 5


**************************************************************************

XML::LibXML Version: 1.68
libxml2 Version: 2.6.16

:1: parser error : attributes construct error
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Couldn't find end of Start Tag foo line 1
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Extra content at the end of the document
<foo attr1="value1"attr2="value2" />
                   ^ at testlibxml.pl line 5



**************************************************************************

XML::LibXML Version: 1.69
libxml2 Version: 2.6.16

:1: parser error : attributes construct error
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Couldn't find end of Start Tag foo line 1
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Extra content at the end of the document
<foo attr1="value1"attr2="value2" />
                   ^ at testlibxml.pl line 5



**************************************************************************

XML::LibXML Version: 1.66
libxml2 Version: 2.6.32

:1: parser error : attributes construct error
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Couldn't find end of Start Tag foo line 1
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Extra content at the end of the document
<foo attr1="value1"attr2="value2" />
                   ^ at testlibxml.pl line 5


**************************************************************************



XML::LibXML Version: 1.69
libxml2 Version: 2.6.32

:1: parser error : Extra content at the end of the document


**************************************************************************

XML::LibXML Version: 1.63
libxml2 Version: 2.6.29

:1: parser error : attributes construct error
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Couldn't find end of Start Tag foo line 1
<foo attr1="value1"attr2="value2" />
                   ^
:1: parser error : Extra content at the end of the document
<foo attr1="value1"attr2="value2" />
                   ^ at testlibxml.pl line 5


**************************************************************************

XML::LibXML Version: 1.68
libxml2 Version: 2.6.27

:1: parser error : Extra content at the end of the document



**************************************************************************


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 22 December 2008 16:39:53 UTC