in reply to Re: creating an xml file from perl
in thread creating an xml file from perl

thank you so much.

when i replace with this:

my $escaped_file = $nfile; $escaped_file =~ s/&/&amp;/g; $escaped_file =~ s/"/&quot;/g; print FIL "<item id="$t" name=\"$escaped_file\" />\n";

i get a server error

Replies are listed 'Best First'.
Re^3: creating an xml file from perl
by ikegami (Patriarch) on Apr 14, 2005 at 02:06 UTC

    I forgot to escape some of the quotes in the print statement. Fixed:

    my $escaped_file = $nfile; $escaped_file =~ s/&/&amp;/g; $escaped_file =~ s/"/&quot;/g; print FIL "<item id=\"$t\" name=\"$escaped_file\" />\n";
Re^3: creating an xml file from perl
by tlm (Prior) on Apr 14, 2005 at 01:08 UTC

    What's the server error? My guess is that the server is complaining that it can't find the files, because you are not including the correct path to the file.

    the lowliest monk