Click here to get back home

Inserting new line to a string

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Inserting new line to a string Deepan Perl XML Parser 03-24-2008
Posted by Deepan Perl XML Parser on March 24, 2008, 4:58 am
Please log in for more thread options
Hi all,
I am having a string like below:



                <responseStatus>HTTP/1.1 200 OK</responseStatus>

                <cookies></cookies>

                <headers>

                        <header name="Accept-Ranges">bytes</header>

                        <header name="Content-Encoding">gzip</header>

                        <header name="Content-Length">5375</header>

                        <header name="Content-Type">text/html</header>

                        <header name="Date">Wed, 19 Mar 2008 10:00:30 GMT</header>

                        <header name="ETag">&quot;1667999478&quot;</header>

                        <header name="Last-Modified">Wed, 19 Mar 2008 10:00:01 GMT</header>

                        <header name="Server">Cricbuzz- Blazing Fast</header>

                        <header name="Vary">Accept-Encoding</header>

                </headers>

                <content>

                        <contentLength>17958</contentLength>

                        <compression>70.069</compression>

                        <encodingScheme>gzip</encodingScheme>

                        <text><![CDATA[

<html>..<head>...</body>..<!-- The template body ends -->..</html>.

]]></text>

                        <mimeType>text/html</mimeType>

                </content>



------------------------------------------------

I want to insert new line at the end of every end tag[ex:- </
responseStatus>].

Thanks,
Deepan

Similar ThreadsPosted
inserting a line into the body of an eMail before forwarding December 17, 2004, 8:46 pm
How to search a string in a given line February 7, 2006, 4:12 am
How to replace the multi-line string January 20, 2005, 6:39 pm
ignore new line for long string August 8, 2005, 10:05 am
Modify string on command line November 22, 2005, 7:59 am
parsing string, as if it were a command line December 19, 2005, 2:04 pm
Use of uninitialized value in string eq at ./xml_simple line 154. August 21, 2006, 7:19 pm
inserting dot October 12, 2005, 2:00 am
Passing in the replace string for a regex via the command line -HOW? March 3, 2005, 12:47 pm
is there a way to take an html string and render it as a web browser would, from the command line? October 25, 2005, 7:55 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap