![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: XML::Smart - undesired decoding of special XML charactersby NeedForPerl (Novice) |
on Oct 16, 2017 at 08:35 UTC ( #1201442=note: print w/replies, xml ) | Need Help?? |
Hi, Thanks for the fast reply. For instance i use the following XML file:
After I execute the following script ...
... I get the following result.
If i call the subroutine data(decode => 1) the msg element contains the decoded message:
But this output is invalid because "&" is not replaced by an escape sequence. I need an XML file with no Base64 encoding and escaped special XML characters like "&". All in one, a valid XML document without Base64 encoding. The XML parser which parses the output of the script can't handle Base64 encoding. I wonder if can solve the problem by using the subroutine set_binary('FALSE'). PS: I´m using Strawberry Perl v5.24.1 on Windows Server 2012 R2 Datacenter.
In Section
Seekers of Perl Wisdom
|
|