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

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";