I try to write an XML-Tree into a file. I looked over the code from DOMPrint.pl and DOMCreate.pl but there is only the output on the standard output.
I tried to divert the output to a file but without success. writeNode always prints it on the standard output:
my $target = XML::Xerces::StdOutFormatTarget->new();
open(OUTPUT,">prepared.xml")"; print (\*OUTPUT, $writer->writeNode($target,$domdocument));
How can I define a file as target or at least create a string using writeNode to put it into a file?
thanks Bjoern
--
Bjoern Haje mailto:[EMAIL PROTECTED] ICQ: 158775500 PGP-KeyID: 0xB3A620BB Fingerprint: CB9B 6447 E8EC 0BA7 A1A9 0EE3 B865 931F B3A6 20BB
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
