NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Extract XML data in perl
by Corion (Patriarch) on Oct 01, 2015 at 11:48 UTC

    How is this question substantially different from your previous question on this topic?

    Maybe you want to show the Perl code you already wrote and tell us how it fails to perform what is needed?

      Its almost same..just trying with different approach to get it sorted.. code as below,
      my $data = XMLin("a_def.xml", KeyAttr => { AlertDefinition => 'id' }, +ForceArray => ['AlertDefinition','id']); print Dumper $data; print $data->{AlertDefinition}->{name}; }

        So, what does your program output and how does it fail? How is that different from what you expect?

        See Data::Dumper for inspecting the data structure you have and References Quick Reference for how to access the data within the data structure.