[Xml-compile] Using xsi:type with XML::Compile

Mark Overmeer mark at overmeer.net
Tue Aug 28 10:37:55 GMT 2012


* DEIGNAN Ciaran (c.deignan at rsd.com) [120828 10:09]:
> In autoexpand_xsi_type the hash reference $xi has a table reference
> as a value. So the test " $xi->{$type} eq 'AUTO'" always fails.

Either an ARRAY or 'AUTO', not the combination, not ['AUTO']

> > Easier:
> >   $wsdl->prefix(dt => 'http://www.rsd.com/2011/07/datatype/schema');
> >   xsi_type => { 'dt:FilePlanType' => 'dt:rmFilePlanType' }
> 
> This doesn't work for me :(
> It says :
>     error: unknown name prefix for `dt:rmFilePlanType'

Weird.  The order is important, of course.  You may also say
  $wsdl->prefix(dt => 'http://www.rsd.com/2011/07/datatype/schema');
  $wsdl->xsiType('dt:FilePlanType' => 'dt:rmFilePlanType');

With 'use Log::Report mode => 3', you will see which prefixes it knows.
-- 
Regards,

               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list