Hi. On Monday 22 Feb 2010 21:54:21 zacky az wrote: > Hi, > > i am trying to create a xml file with the following > > <?xml version="1.0" encoding="UTF-8"?> > <file name="file 1"/> > <file name="file 2"/>
This is invalid XML - it has two top-level elements and XML must have exactly one. So it cannot be done. If you want you can do this: {{{ <?xml version="1.0" encoding="UTF-8"?> <files> <file name="file 1"/> <file name="file 2"/> </files> }}} Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ First stop for Perl beginners - http://perl-begin.org/ Deletionists delete Wikipedia articles that they consider lame. Chuck Norris deletes deletionists whom he considers lame. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/