<?xml version="1.0" encoding="windows-1252"?>
<node id="1015337" title="Re^3: How to convert a text file to a HTML file" created="2013-01-25 07:43:01" updated="2013-01-25 07:43:01">
<type id="11">
note</type>
<author id="951128">
ghosh123</author>
<data>
<field name="doctext">
&lt;p&gt; 
Hi &lt;br\&gt;&lt;br\&gt;

Thanks for your input. Now let me re-iterate my problem this way. Suppose I have simple a.txt(pasted below) file in my desktop. When I open that file on the browser by giving the unix path/windows path ...it comes in proper order and indentation. &lt;br\&gt;&lt;br\&gt;
But when I am reading this file in a string and inserting the string in a  database column and later on using cgi perl printing it on the webpage , it gets messed up. &lt;br\&gt;&lt;br\&gt;

What magic is happening when I do print $htmldata in my cgi perl code so that it destroys the order and indentation of the text ? &lt;br\&gt;&lt;br\&gt;

name &amp;nbsp&amp;nbsp     phone &lt;br\&gt;&lt;br\&gt;
xyz  &amp;nbsp&amp;nbsp      123 &lt;br\&gt;&lt;br\&gt;
abc  &amp;nbsp&amp;nbsp      890  &lt;br\&gt;&lt;br\&gt;

But it is coming as : &lt;br\&gt;&lt;br\&gt;

name phone xyz 123 abc 890 

Thanks
&lt;/p&gt;</field>
<field name="root_node">
1015328</field>
<field name="parent_node">
1015335</field>
</data>
</node>
