Help for this page

Select Code to Download


  1. or download this
    $data = XMLin( $xml, ForceArray => [ qw(Layer) ] )
    
  2. or download this
    my $layers = $data->{Capabilities}->{Layer};
    for my $layer ( ref $layers eq 'ARRAY' ? @$layers : ( $layers ) ) {
        # do something to each Layer
    }