in reply to Caturing incoming XML from SOAP server

It depends on the information in $data.

If $data is a hashref with a single KEY, and if the VALUE of that key is an XML string, you can get to that string with something like:

my ($xml) = values %$data; # You can now write the contents of $xml to a file...
Give us more information on the contents of $data, if you need more help.

        "I can cast out either one of your demons, but not both of them." -- the XORcist

Replies are listed 'Best First'.
Re^2: Caturing incoming XML from SOAP server
by gackles (Novice) on Feb 18, 2016 at 15:55 UTC

    Thank you for your help! I reposted my question because I realize that it's the ATTRIBUTES that are giving me trouble. Here's the thread. Thanks again for your help: http://www.perlmonks.org/?node_id=1155553