in reply to parsing various xml responses
And it does not work, it prints this in the browser:$_xmlCode = q~<?xml version="1.0" encoding="UTF-8"?><PayoneerToken><To +ken>https://sandbox.payoneer.com/partners/lp.aspx?token=akn2w3knsnk32 +3lnknasdin4falkngnaskjncik32l12</Token></PayoneerToken> ~; $ob = new XML::Bare( text => "$_xmlCode" ); $root = $ob->parse(); $_redirectUrl = $root->{PayoneerToken}{Token}{Value}; # Print to browser to see if it is working... print "Content-type: text/html\n\n"; print qq~ \$_redirectUrl = '$_redirectUrl';<br> <br> <b>\$_xmlCode='$_xmlCode'</b>;<br>~;
Any idea now, why that would not work? I've tried changing the variables names and everything.## Browser output not perl code: $_redirectUrl = ''; $_xmlCode='<?xml version="1.0" encoding="UTF-8"?><PayoneerToken><Token +>https://sandbox.payoneer.com/partners/lp.aspx?token=akn2w3knsnk323ln +knasdin4falkngnaskjncik32l12</Token></PayoneerToken>';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: parsing various xml responses
by ikegami (Patriarch) on Dec 17, 2009 at 03:54 UTC | |
by Anonymous Monk on Dec 17, 2009 at 04:16 UTC | |
by ikegami (Patriarch) on Dec 17, 2009 at 04:49 UTC | |
by Anonymous Monk on Dec 17, 2009 at 06:36 UTC | |
|
Re^2: parsing various xml responses
by Anonymous Monk on Dec 17, 2009 at 03:55 UTC |