[Xml-compile] Accessing schemaLocation attribute url values
inside <include> elements
Mark Overmeer
solutions at overmeer.net
Fri Jul 16 11:57:50 GMT 2010
* Mark Overmeer (mark at overmeer.net) [100716 13:04]:
> One WSDL can have multiple schemas...
>
> foreach my $fragment ($wsdl->namespaces->allSchemas)
> { # $fragment is an XML::Compile::Schema::Instance
> my @urls
> = ( $fragment->includeLocations
> , $fragment->importLocations
> );
> }
Duh, that should be
my @includes = $frag->includeLocations;
my @imports = map { ($frag->importLocations($_))[0] } $frag->imports;
An import may specify multiple locations, of which only one needs to
be valid.
--
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