in reply to Having problems accessing individual attributes in xml

In pseudocode, what you're probably looking for is
for $dirresult (result of '//ncp_directory' wrt $document) { for $fileresult (result of 'ncp_file' wrt $dirresult) { print( (result of '@md5' wrt $fileresult), ' = ', (result of '@name' wrt $fileresult) ); } }

Replies are listed 'Best First'.
Re^2: Having problems accessing individual attributes in xml
by Gemenon (Initiate) on Oct 21, 2010 at 03:00 UTC
    Thanks for the reply, and yes that pseudocode does look like what I have in mind. Unfortunately I'm so green at this I don't know which Perl commands to use. Thats a start though, at least I can go do some more focused research based on your answer.