Re: Adding root node

2002-12-23 Thread Rob Dixon
Damn. That'll teach me to cut 'n' paste :-/ Try: print "\n"; print while <>; print "\n"; /R "Rob Dixon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > OK, I think you need this: > > print "\n"; > print while <>; > print "\n" and close

Re: Adding root node

2002-12-23 Thread John W. Krahn
Sorin Marti wrote: > > Hi all, Hello, > I've written a very simple script which puts xml-documents together... > Now I want to add a root node at the beginning and one at the end. > > > [content] > > > How do I do that? > > #/usr/bin/perl > > while( @ARGV ){ > $filename=shift @AR

Re: Adding root node

2002-12-23 Thread Rob Dixon
Hi Sorin What module are you using, if any, to build your XML? Rob "Sorin Marti" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I've written a very simple script which puts xml-documents together... > Now I want to add a root node at the beginnin

Adding root node

2002-12-23 Thread Sorin Marti
Hi all, I've written a very simple script which puts xml-documents together... Now I want to add a root node at the beginning and one at the end. [content] How do I do that? #/usr/bin/perl while( @ARGV ){ $filename=shift @ARGV; open( DATEI, "<$filename" ); while( ){ print unl