[DRRHO - Sat Jan 19 13:20:58 2002]:
Show quoted text> I see a lot of warnings
>
> Use of uninitialized value in string eq at blib/lib/XML/SAX/Writer.pm
> line
>
> during a test suite where I use XML::SAX::Writer.
>
> I have silenced this with
>
> 140c140
> < if (defined $uri && $uri ne $at->{NamespaceURI}) { # ns
> has precedence
> ---
> > if ($uri ne $at->{NamespaceURI}) { # ns has precedence
Thanks for the patch but I don't think that silencing it is the correct
thing to do. If $uri is not defined, it means that there has been a
problem mapping a prefix to a URI, ie that one is trying to write an
element that has an unbound prefix. As per the Namespace rec, that's a
well-formed error and the warning is correct.
I've changed the code to make the warning make more sense, ie I warn
myself instead of letting Perl do it. It'll be in the next release.
--
--darobin