in reply to Working through it...

FYI, your XML formatting is better. You could make it even better by using XML::Tidy. In the bin folder, you'll find xmltidy. Just run:
xmltidy myxml.xml
and it's done. For example, I ran your xml though xmltidy:
<?xml version="1.0" encoding="utf-8"?> <GeocodeResponse> <status>OK</status> <result> <type>postal_code</type> <formatted_address>Edmonton, BC V2M 4M7, Canada</formatted_address +> <address_component> <long_name>V2M 4M7</long_name> <short_name>V2M 4M7</short_name> <type>postal_code</type> </address_component> <geometry> <location> <lat>29.1153940</lat> <lng>-133.8394480</lng> </location> </geometry> </result> </GeocodeResponse>

Replies are listed 'Best First'.
Re^2: Working through it...
by Anonymous Monk on Sep 11, 2011 at 01:36 UTC