[Xml-compile] Error compiling schema for element with a default and an attribute

Philip Garrett philgarr at gmail.com
Mon Mar 12 20:21:25 GMT 2012


On Mar 12, 2012, at 4:08 PM, Mark Overmeer wrote:
>>  Can't locate object method "node" via
>> package "U" (perhaps you forgot to load "U"?) at
>> /opt/local/lib/perl5/site_perl/5.12.3/XML/Compile/Translate/Reader.pm
>> line 647.
> 
> Excellent report.  Just before that line add:
> 
>      ref $tree or return ($tag => {_ => $simple});

Works perfectly.  Thanks very much!

- Philip




More information about the Xml-compile mailing list