readln for XML file

source1ben
Posts: 32
Joined: Fri Nov 02, 2001 10:22 am

readln for XML file

Post by source1ben »

I am reading in a XML file with the readln function. The $ret is converting some characters in this process.

For example:

< is changed to <
> is changed to >
" is changed to "

I seem to be having a problem getting the sandr to replace these characters with the <, >, and " characters.

Perhaps I am out in left field ??? Is the timport a better approach to processing a xml file as an input. If so, do you have any example code on how to do this ?

thx.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

readln for XML file

Post by mark »

There is no conversion on input. The conversion is on output to an html page. By default variables will be automatically HTML escaped when printed. You have several options to get them out raw.
<fmt "%s" $var>
<send $var>
generate a ".txt" page instead of ".html".

See http://thunderstone.master.com/texis/ma ... 3aa6845821
for a discussion of timporting xml.