in reply to How to fetch the value using LWP:: UserAgent
use XML::LibXML qw(); my $dom = XML::LibXML->load_xml(string => \<<'XML'); <drl connectionid="foobar" /> XML for my $node ($dom->findnodes('//drl[@connectionid]')) { print $node->getAttribute('connectionid'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to fetch the value using LWP:: UserAgent
by panapka (Initiate) on Jul 16, 2012 at 11:54 UTC | |
by aitap (Curate) on Jul 16, 2012 at 12:27 UTC | |
by panapka (Initiate) on Jul 16, 2012 at 12:48 UTC | |
by aitap (Curate) on Jul 16, 2012 at 13:09 UTC | |
by panapka (Initiate) on Jul 17, 2012 at 04:45 UTC | |
by panapka (Initiate) on Jul 17, 2012 at 07:20 UTC | |
by aitap (Curate) on Jul 17, 2012 at 07:29 UTC | |
by panapka (Initiate) on Jul 17, 2012 at 11:47 UTC |