I did actually include that line. You mean the same line you mentioned in your code in your first response right ?
I used your code exactly with tweaking few things like file names. The print is showing that its working overall but file output is unfortunately not
btw when I used your suggestion
my $ok = $new->toFile($file-name,2) I got I/O invalid argument. I managed to get it work but as I said still doesn't show anything other than what I mentioned.
again thanks for your help
In reply to Re^4: copy XML elements from one file to another
by Anonymous Monk
in thread copy XML elements from one file to another
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |