Hi am XML newbie
This is the XML that is returned from a distant server, I can process it with standard Perl to get the data I want, but I know I ought to be able to use a Perl Module such as XML::Simple to dump into a Perl structure automatically, except I can't get it to work.
My xml data is in
$xml= $ua->request($req)->as_string;
can anyone help?
<?xml version="1.0" encoding="utf-8"?>
<ServerTxnResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://www.zzzyyyxxx.com"> <StdResponse> <Ad1AvsResult /> <CvcResult /> <AuthResult>6</AuthResult> <AuthCode>789DE</AuthCode> ....
</StdResponse>
This is the XML that is returned from a distant server, I can process it with standard Perl to get the data I want, but I know I ought to be able to use a Perl Module such as XML::Simple to dump into a Perl structure automatically, except I can't get it to work.
My xml data is in
$xml= $ua->request($req)->as_string;
can anyone help?
<?xml version="1.0" encoding="utf-8"?>
<ServerTxnResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://www.zzzyyyxxx.com"> <StdResponse> <Ad1AvsResult /> <CvcResult /> <AuthResult>6</AuthResult> <AuthCode>789DE</AuthCode> ....
</StdResponse>