Bug report for Xerces-P [2004/03/07]
2004-03-07 15:21:10 GMT
+---------------------------------------------------------------------------+
| Bugzilla Bug ID |
| +---------------------------------------------------------------------+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned |
| | OPN=Reopened VER=Verified (Skipped Closed/Resolved) |
| | +-----------------------------------------------------------------+
| | | Severity: BLK=Blocker CRI=Critical MAJ=Major |
| | | MIN=Minor NOR=Normal ENH=Enhancement |
| | | +-------------------------------------------------------------+
| | | | Date Posted |
| | | | +--------------------------------------------------+
| | | | | Description |
| | | | | |
| 4611|New|Enh|2001-11-02|Convert Xerces-C documentation to POD |
|20611|New|Nor|2003-06-09|overloaded Attributes::get{Type,Value} and Attribu|
|24604|New|Maj|2003-11-11|Handler/Makefile.PL blocks the effects of the hint|
|24605|New|Maj|2003-11-11|make -C Handler only works for GNU make |
|24675|New|Nor|2003-11-13|XMLCatalogResolver should support the real standar|
|25675|New|Nor|2003-12-20|Makefile.PL does not use CONFIG_STATUS |
|25686|New|Nor|2003-12-22|Memory access bug in XMLString2Perl() |
|25788|New|Maj|2003-12-28|Using UNIVERSAL breaks XML::Xerces; |
+-----+---+---+----------+--------------------------------------------------+
| Total 8 bugs |
+---------------------------------------------------------------------------+
Bob Arthur wrote:
> Hi,
>
> I've recently compiled Xerces-C 2.3.0-1, and XML-Xerces-2.3.0-4. I'm
> using Debian woody. (g++ version 3.0.4)
Forgot to mention that I'm using perl 5.6.1.
> All was going well, but I'm having trouble with AttributeList_getValue
> when validating against a Schema - trouble with AttributeList->to_hash():
>
> No matching function for overloaded 'AttributeList_getValue' at
> /usr/local/lib/perl/5.6.1/XML/Xerces.pm line 261.
>
> Searching on Google, I've seen other messages on this group regarding
> this issue, but no resolution. I was wondering if more was known about it.
[snip]
My searching wasn't deep enough - a similar problem in a thread "Problem
Building Xerces-XML on Linux with Perl 5.6.1" prompted me to add the line:
my $tmp = $self->getName();
to the AttributeList->to_hash method. Thus:
package XML::Xerces::AttributeList;
sub to_hash {
my $self = shift;
my %hash;
for (my $i=0;$i<$self->getLength();$i++) {
my $tmp = $self->getName($i);
$hash{$self->getName($i)} = $self->getValue($i)
}
return %hash;
}
I made this change to my local copy of Xerces.pm after running "make",
but before "make install" and lo - all is well!
I hope this will help others who may be in the same spot. Meanwhile,
thanks to Eric and Jason for the idea
All the best,
Bob.
RSS Feed