The idea was to not call ->printToFile (which you're doing in all five cases), but to use the suggested code instead:
#!/usr/bin/perl -w use XML::DOM; my $parser = new XML::DOM::Parser; my $doc = $parser->parsefile ("c:\\accentTest.xml"); open my $fh, ">:utf8", "c:\\accentTestOutPut.xml" or die $!; print $fh "\x{FEFF}"; # BOM $doc->print($fh); $doc->dispose;
In reply to Re^9: XML:: DOM and Accented Characters
by almut
in thread XML:: DOM and Accented Characters
by freeflyer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |