in reply to Re^5: XML :: Simple
in thread XML :: Simple

With XML::Simple you can't tell the difference between an attribute and a sub-tagname. You may want to use some other module, like XML::LibXML.