[xml] Perl SAX parser bug?
- From: Fabien RICHARD <beuhfa yahoo fr>
- To: xml gnome org
- Subject: [xml] Perl SAX parser bug?
- Date: Fri, 21 Feb 2003 17:49:23 +0100 (CET)
Hi,
I'm now using the SAX parser lib with Perl, and I think I have found a bug.
When I print the 'LocalName' field of the hash table passed as parameter of
the 'end_element' callback method, it give me the string 'TODO'...
Here is the routine:
sub end_element {
my ($self, $el) = @_;
print "< ",$el->{LocalName},"\n";
# delete last element
if ($el->{LocalName} ne "props" and
$el->{LocalName} ne "Prop")
{
my $t = pop @{$self->{lastElem}};
print "have deleted $t\n";
}
}
I'm not sure I use the latest release of the lib, so I have put my previous mails
Regards,
Fab.
--- Fabien RICHARD <beuhfa yahoo fr> a écrit :
Igor,
Thanks very much for your reply.
I'm not sure that I can give you the ultra-violet wavelengths ;)
But I currently use the libxml2 under Windows 2000 with Perl 5.8.
I have downloaded libxml2 from http://theoryx5.winnipeg.ca/ppmpackages
and I can give you the version of the main lib:
# $Id: SAX.pm,v 1.24 2002/11/19 18:25:45 matt Exp $
I have installed XML-SAX and XML-SAX-PurePerl.
I have just create a ParserDetails.ini empty file in the install dir
c:/Perl/site/lib/XML/SAX to workaround the pb, and it seems working...
Regards,
Fab.
--- Igor Zlatkovic <igor zlatkovic com> a écrit :
Hi,
On Thu, 20 Feb 2003, Fabien RICHARD wrote:
Hi,
I have installed the Perl libxml2 SAX parser on my machine and I have the
following error message:
$ perl test.pl
could not find ParserDetails.ini in c:/Perl/site/lib/XML/SAX
LWP Request Failed at c:/Perl/site/lib/XML/SAX/PurePerl/Reader/URI.pm line 51.
Is somebody can help me on this pb?
Which operating system are you using? The shell prompt is typical Unix, but
the paths are malformed Windows.
If this output is really made on Unix, then there is something basically
wrong with the instalation, just as if someone installed it on Windows and
then simply copied the whole directory to the Unix partition.
Oh, and giving slightly more information about the involved components would
perhaps be helpful. We'll need the version of libxml2, Perl, Operating
System, The manufacturer and version ID of your BIOS Firmware, PatchID and
CPUID of your processor(s). Please also state the average irregularity rate
of your voltage supply, the operating temperature of your environment, and
the amount of present electromagnetic radiation, ultra-violet wavelengths
only, expresed in photons per cubic micrometer. :-)
Ciao,
Igor
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]