Subject: | XML::Compile::Schema::XmlReader::complex_element |
I have a schema where a compilation attempt leads to the error
Can't call method "node" on an undefined value at
/usr/local/share/perl/5.8.8/XML/Compile/Schema/XmlReader.pm line 379.
(I can send the schema on request, but probably I have to strip it down
to the relevant part).
Near the problematic line I see the following:
sub { my $tree = shift; # or return ();
If I activate the "or return ()" part, then the error vanishes and the
schema is compiled OK and seems to work.
Regards,
Slaven