I am having a bit of a doozy problem with parsing out values of a KML.
I have managed to get the KML into a hash and print off the values I desire although the hash is breaking my KML structure apart.
The trouble is that each attribute is being placed as a seperate hash within the node.
This will present problems when I am trying to take my value, use it to return another value and place this value back into the KML at the correct place which is what I need.
I am currently using XML::Simple and suspect that this does not recognise attributes as attributes and I am struggling to comprehend if there are better parsers which will maintain my KML/XML structure?
Another problem which I seem to be having with XML::Simple is that the <name> element of the KML is not being preserved, the value is instead being used as the Hash key value and not preserving the value as the value of the <name> element! Again, is this an XML:Simple perculiarity and is it a known problem of XML parsers?
Any suggestions/explanations would be very useful,
Many thanks
Niall Carter
In reply to Using KML in XML::Simple by carterniall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |