in reply to Having problems accessing individual attributes in xml
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 |