I have tried in this manner:

use XML::XPath;

my $xp=XML::XPath->new(filename=>"xmlin.xml");
my $nodeset1=$xp->find('//DbName');
my @zipcodes1;
if(my @nodelist1=$nodeset1->get_nodelist){
@zipcodes1=map($_->string_value,@nodelist1);
[EMAIL PROTECTED];
local $"="\n";
}

But by using this method I can't distinguish between the first two
DbName value and the last two.
How to solve it?
Thank you very much!



On Wed, 27 Oct 2004 21:45:30 -0400 (EDT), Chris Devers
<[EMAIL PROTECTED]> wrote:
> On Wed, 27 Oct 2004, Franklin wrote:
> 
> > How can i parse this xmlfile?
> 
> That depends on what XML parsing module you're using.
> 
> You never seem to state that.
> 
> For that matter, you never show what you've tried so far.
> 
> Please tell us what you have tried so far.
> 
> --
> Chris Devers
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to