in reply to xml - empty node

I already answered this question at your other thread. This node is basically a repost with a broken version of the code I provided. But you didn't give me a chance to respond to the original post.

Why did you remove the parentheses in the if block? The anonymous poster already pointed out the error. Some basic perl tutorials will help you with syntax.

When you post questions like these you need to tell us what warnings and errors you get and where you are stuck. Telling us that something doesn't work just means you expect us to do everything to debug "your" code.

You don't need both the -w after perl and use warnings;

Why not test your code with several cd/artists in the xml file, some empty and some with values?