I agree with Lawrence! I am currently using two older packages called XML::SAX and XML::SAX::Expat ; they may well be a bit old-fashioned, but they work for me.

Rgds, GFStC.

-----Original Message----- From: Lawrence Statton
Sent: Thursday, March 15, 2012 12:47 PM
To: beginners@perl.org
Cc: anirban.adhik...@gmail.com
Subject: Re: XML parsing question

On 03/15/2012 09:11 AM, Anirban Adhikary wrote:
I am writting a following code to parse this xml but not able yo
understand
that why the value of $bsc_id_1 getting changed.
here is my code

use strict;
use warnings;

my $xml_file_to_read = "BSC-19478.xml";
my $counter = 1;
my $bsc_id_1;
my $bsc_id;
open my $RFH,'<',$xml_file_to_read or die "Can't open $xml_file_to_read
$!\n";


Writing code to parse XML is a terrible, terrible idea.

There are many, many excellent modules.

I happen to love XML::LibXML

http://search.cpan.org/modlist/String_Language_Text_Processing/XML



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to