esharris has asked for the wisdom of the Perl Monks concerning the following question:
I need a subroutine that takes an arbitrary string and returns that string in XML format. For example, it should change "IBM & Microsoft" into "IBM & Microsoft".
The hypothetical subroutine would be simiar to CGI::escape, which returns a given string in HTML format.
Does such a subroutine exist under CPAN? Though I looked around CPAN and used Google, I am having difficulty finding it.
I figure there is no sense re-inventing the wheel.
Edited by Chady -- fixed &
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: creating an XML string
by Joost (Canon) on Dec 28, 2004 at 18:03 UTC | |
Re: creating an XML string
by holli (Abbot) on Dec 28, 2004 at 18:18 UTC | |
by holli (Abbot) on Dec 28, 2004 at 18:19 UTC | |
Re: creating an XML string
by steves (Curate) on Dec 28, 2004 at 18:15 UTC | |
Re: creating an XML string
by PreferredUserName (Pilgrim) on Dec 28, 2004 at 18:05 UTC | |
by Joost (Canon) on Dec 28, 2004 at 18:10 UTC | |
by PreferredUserName (Pilgrim) on Dec 30, 2004 at 19:14 UTC | |
Re: creating an XML string
by steves (Curate) on Dec 29, 2004 at 16:12 UTC |
Back to
Seekers of Perl Wisdom