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

Re: creating an XML string

by PreferredUserName (Pilgrim)
on Dec 28, 2004 at 18:05 UTC ( #417806=note: print w/replies, xml ) Need Help??


in reply to creating an XML string

Quick & dirty:
sub encode { join '', map { /[\w\d ]/ ? $_ : '&#' . ord() . ';' } split //, shi +ft; }

Replies are listed 'Best First'.
Re^2: creating an XML string
by Joost (Canon) on Dec 28, 2004 at 18:10 UTC
      Well, they don't call it "quick and dirty" because it's elegant and complete.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2023-09-27 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?