Re: XML::Twig Question

2012-09-06 Thread Brandon McCaig
On Thu, Sep 06, 2012 at 03:09:28PM -0400, Brandon McCaig wrote: > print trim($element->text()), "\n"; Sorry, I seem to have left out the definition of trim from my example.. For completeness, it would be something along these lines: sub trim { my ($string) = @_; $string =~ s/\A\s+//;

Re: XML::Twig Question

2012-09-06 Thread Brandon McCaig
On Wed, Sep 05, 2012 at 08:26:30PM +0530, Anirban Adhikary wrote: > Hi List, Hello, (Note: the first (unquoted) snippet is missing a single-quote :)) > Now in the case of following XML file > > > > vsMscServerCell > vsData1.0 > > RADIO-IU > INVALID > 3GCell >

Re: XML::Twig Question

2012-09-05 Thread Anirban Adhikary
One thing forget to mention in the 2nd case I only able to print the value of id after removing of *xn: *from the beginning of the line.NO print for gci_sai and locationNumber . On Wed, Sep 5, 2012 at 8:26 PM, Anirban Adhikary wrote: > Hi List, > I have a XML file which looks like as follows >