in reply to XML::Simple parse attributes
Re: A puzzle for parsing XML with XML::Simple! applies to your question. In your case it's the element 'id'.