in reply to extracting href data in XML

What have you tried? There are examples in the documentation.

Replies are listed 'Best First'.
Re^2: extracting href data in XML
by kanz0r (Initiate) on Aug 07, 2005 at 08:57 UTC
    i have tried the following code:
    use strict; use XML::Twig; my $twig = new XML::Twig(TwigHandlers=> {NBA=>\&NBA}); $twig ->parsefile('nba.xml'); exit<p> sub nba { my ($twig, $nba)=@_; $nba{stadium}= join ':', map {$_->text || ''}@{[$nba->children( 'S +tadium')]; print "$nba(stadium)\n"; $nba ->delete; }

    CODE tags added by Arunbear