:) That response looks parsed already :) See Re: Parsing SOAP::Lite results (with Data::Diver)

The issue is that I am not able to pull the values of tag's' like plant, material_desc etc.

Maybe you want "//MT_LABEL_IN/HEADER/*" ? IE keep doing what you're already doing?

Works for me

for my $d ( $xmlResponse->dataof("//MT_LABEL_IN/HEADER/*") ){ print "$d ", $d->name, " = ", $d->value, "\n", } __END__ SOAP::Data=HASH(0xa6a76c) material = 12659-250GM SOAP::Data=HASH(0xa6ab5c) batch = D00166202 SOAP::Data=HASH(0xa6af74) material_desc = Albumin, Bovine Serum, Fra +ct 1PC x 250GM SOAP::Data=HASH(0xa6b744) plant = US05

or post code that shows that, code that runs, not fragments, maybe code like Re^3: SOAP::Lite - Attribute in array

or the acdtual xml of the response, as the DDumper you've shown doesn't have Purity(1)

This invocation of DDumper has purity

sub ppp { use Data::Dumper(); return Data::Dumper->new( [@_] )->Sortkeys( 1 )->Purity( 1 )->Inde +nt( 0 ) ->Useqq( 1 )->Dump . '$VAR1;'; } ## end sub ppp

Links to soap tips including getting tidy debugging info in Re: Why can't SOAP::Lite deserialize its own output? (it does)


In reply to Re: SOAP::Lite Response Parsing by Anonymous Monk
in thread SOAP::Lite Response Parsing by Abhijit10089

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.