in reply to Having problems accessing individual attributes in xml

Using XML::LibXML syntax, but you should get the idea.
for my $dir_node ($root->findnodes('//ncp_directory')) { my $dir_name = $dir_node->getAttrribute('name'); for my $file_node ($dir_node->findnodes('ncp_file')) { my $md5 = $file_node->getAttribute('md5'); my $file_name = $file_node->getAttribute('name'); ... } }

Replies are listed 'Best First'.
Re^2: Having problems accessing individual attributes in xml
by Gemenon (Initiate) on Oct 21, 2010 at 22:24 UTC

    Thank you bigtime ikegami! This works perfectly! I also owe you one!

    Between your script and dasgar's example above I can do what I set out to do, and move ahead into the next stages of my project!

    A big thanks to all who answered my plea for help!