Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: XML::Smart - undesired decoding of special XML characters

by NeedForPerl (Novice)
on Oct 16, 2017 at 12:35 UTC ( [id://1201442]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <?xml version="1.0" encoding="UTF-8"?>
    <log>
    ...
    <msg>This is my SVN message with characters like ä or &amp;.</msg>
    </logentry>
    </log>
    
  2. or download this
    use XML::Smart;
    
    ...
    my $test = XML::Smart->new($logString);
    $test->{log}->{logentry}[0]->{msg}->set_binary('FALSE');
    print $test->data();
    
  3. or download this
    <?xml version="1.0" encoding="UTF-8" ?>
    <?meta name="GENERATOR" content="XML::Smart/1.78 Perl/5.024001 [MSWin3
    +2]" ?>
    ...
        <msg dt:dt="binary.base64">VGhpcyBpcyBteSBTVk4gbWVzc2FnZSB3aXRoIGN
    +oYXJhY3RlcnMgbGlrZSDkIG9yICYu</msg>
      </logentry>
    </log>
    
  4. or download this
        <msg>This is my SVN message with characters like ä or &.</msg>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1201442]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-19 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found