in reply to Get the XML nodes.

step 1) forget about XML::Simple
step 2) use DOM/xpath, like with XML::LibXML, examples linked in Re: Retrieve select information from HTML, including parent nodes and other links they link like Re^3: XML parsing and Lists