Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: How to encode apostrophe and quote using XML::Writer?

by jeffa (Bishop)
on Feb 10, 2016 at 20:02 UTC ( [id://1154889]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub _escapeLiteral {
      my $data = $_[0];
    ...
      }
      return $data;
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
    $Writer->end();
    
    print $Writer->to_string;
    
  3. or download this
    <root>
      <str1>one&lt;two</str1>
    ...
      <str4>Caisse D"Eparge</str4>
      <str5>Caisse D'Eparge</str5>
    </root>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found