If you're going to use XML::Simple, then please take a few minutes to read this node which shows ways to avoid common pitfalls (such as not specifying KeyAttr which is causing your 'name' problem; and not specifying ForceArray which is probably causing your other problem).
Once you've read that, I'd really recommend using XML::LibXML instead - it will be easier. This node discusses moving from XML::Simple to XML::LibXML.
In reply to Re: Using KML in XML::Simple
by grantm
in thread Using KML in XML::Simple
by carterniall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |