in reply to Re^2: parsing various xml responses
in thread parsing various xml responses

Ok, I did the dump, and here is the result:
Dump of $root2 { PayoneerToken => { Token => {} }, _i => -416395696, _pos => 0, _z => + 0, value => "<?xml version=\"1.0\" encoding=\"UTF-8\"?><PayoneerToke +n><Token>https://sandbox.payoneer.com/partners/lp.aspx?token=akn2w3kn +snk323lnknasdin4falkngnaskjncik32l12</Token></PayoneerToken>", }

Any clues as to why it is broken?

thanks again,
Richard

Replies are listed 'Best First'.
Re^4: parsing various xml responses
by ikegami (Patriarch) on Dec 17, 2009 at 04:49 UTC

    No it isn't. The code you posted does not produce that.

      Ah, I found it...

      Upon investigating, I realized that I should not be seeing the xml output, as the browser should hide the < and > tags since they might be html, so I looked at it and sure enough, the brackets returned in the response were encoded: & lt; & gt; for the brackets, so I just did this:
      $page2 =~ s/\&lt;/\</g; $page2 =~ s/\&gt;/\>/g;
      and that fixed it...

      Guess I should have looked at the html source of the browser page and I would have seen that straight away.

      thanks again. Sorry it was that easy and I bothered you all with it.

      Richard