I forgot to escape some of the quotes in the print statement. Fixed:
my $escaped_file = $nfile; $escaped_file =~ s/&/&/g; $escaped_file =~ s/"/"/g; print FIL "<item id=\"$t\" name=\"$escaped_file\" />\n";
In reply to Re^3: creating an xml file from perl
by ikegami
in thread creating an xml file from perl
by decerebrate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |