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'.

update After you read my reply, your code will actually work, even with the new XML.