Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by NeedForPerl (Novice)
on Oct 16, 2017 at 12:35 UTC ( #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
Node Status?
node history
Node Type: note [id://1201442]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2019-11-15 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (85 votes). Check out past polls.

    Notices?