in reply to Extract XML data using xml :: simple

XML::Simple warns against using itself in the documentation. Your task is easy in XML::XSH2, a wrapper around XML::LibXML:
open file.xml ; echo //Resource/@name ;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ