in reply to parsing of xml with mutiple tags
you need Xpath modules to get the exact value of the Node ....try XML::Xpath
i tried to use XML::LibXML but ran into some problems .. please post the code Cleanly .....
i just pasted the xml into a hello.xml ....i think this is what you are looking for ...use XML::LibXML; my $parser = XML::LibXML->new(); my $doc = $parser->parse_file('hello.xml'); foreach my $book ($doc->findnodes('/result/suites/suite/cases/case') +) { my($title) = $book->findnodes('./className'); print $title->to_literal, "\n" }
|
|---|