Re: how to $doc->createElement with XML::LibXML

2010-02-23 Thread zacky az
On Feb 23, 12:16 am, shlo...@iglu.org.il (Shlomi Fish) wrote: > Hi. > > On Monday 22 Feb 2010 21:54:21 zacky az wrote: > > > Hi, > > > i am trying to create a xml file with the following > > >   > > > >   > > This is invalid XML - it has two top-level elements and XML must have exactly > one. So i

Re: how to $doc->createElement with XML::LibXML

2010-02-22 Thread Shlomi Fish
Hi. On Monday 22 Feb 2010 21:54:21 zacky az wrote: > Hi, > > i am trying to create a xml file with the following > > > > 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: {{{ }}} Regards, S

how to $doc->createElement with XML::LibXML

2010-02-22 Thread zacky az
Hi, i am trying to create a xml file with the following i try the following code without any success, can someone help me to understand what i am dong wrong? use strict; use XML::LibXML; my $doc = XML::LibXML::Document->new( '1.0', 'UTF-8' ); my $root = $doc->createElementNS('', 'file');