Hi there, I'm trying to do some simple data extraction from a field that contains a basic google geocode xml response in it using the get data from XML step in Kettle. I'm confused as to why this is breaking as it should be so straight forward. Here is my "file" page selecting the result field:
Here is my content page:
http://snag.gy/MHjUp.jpg
Here is my Fields page:
http://snag.gy/I8ZWh.jpg
Lastly here is my XML directly from the field.
<?xml version="1.0" encoding="UTF-8"?>
<GeocodeResponse>
<status>OK</status>
<result>
<type>street_address</type>
<formatted_address>102 South Main Street, Oakfield, WI 53065, USA</formatted_address>
<address_component>
<long_name>102</long_name>
<short_name>102</short_name>
<type>street_number</type>
</address_component>
<address_component>
<long_name>South Main Street</long_name>
<short_name>S Main St</short_name>
<type>route</type>
</address_component>
<address_component>
<long_name>Oakfield</long_name>
<short_name>Oakfield</short_name>
<type>locality</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Fond du Lac</long_name>
<short_name>Fond Du Lac</short_name>
<type>administrative_area_level_2</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Wisconsin</long_name>
<short_name>WI</short_name>
<type>administrative_area_level_1</type>
<type>political</type>
</address_component>
<address_component>
<long_name>United States</long_name>
<short_name>US</short_name>
<type>country</type>
<type>political</type>
</address_component>
<address_component>
<long_name>53065</long_name>
<short_name>53065</short_name>
<type>postal_code</type>
</address_component>
<geometry>
<location>
<lat>43.6835160</lat>
<lng>-88.5478820</lng>
</location>
<location_type>ROOFTOP</location_type>
<viewport>
<southwest>
<lat>43.6821670</lat>
<lng>-88.5492310</lng>
</southwest>
<northeast>
<lat>43.6848650</lat>
<lng>-88.5465330</lng>
</northeast>
</viewport>
</geometry>
</result>
</GeocodeResponse>
It just seems so basic that it should just work but I've been trouble shooting it all afternoon. Can anyone point to the rookie mistakes I'm making here? When I preview the step in the transformation it just breaks and doesn't have any data to display.
Cheers and thanks!
Walter.
Here is my content page:
http://snag.gy/MHjUp.jpg
Here is my Fields page:
http://snag.gy/I8ZWh.jpg
Lastly here is my XML directly from the field.
<?xml version="1.0" encoding="UTF-8"?>
<GeocodeResponse>
<status>OK</status>
<result>
<type>street_address</type>
<formatted_address>102 South Main Street, Oakfield, WI 53065, USA</formatted_address>
<address_component>
<long_name>102</long_name>
<short_name>102</short_name>
<type>street_number</type>
</address_component>
<address_component>
<long_name>South Main Street</long_name>
<short_name>S Main St</short_name>
<type>route</type>
</address_component>
<address_component>
<long_name>Oakfield</long_name>
<short_name>Oakfield</short_name>
<type>locality</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Fond du Lac</long_name>
<short_name>Fond Du Lac</short_name>
<type>administrative_area_level_2</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Wisconsin</long_name>
<short_name>WI</short_name>
<type>administrative_area_level_1</type>
<type>political</type>
</address_component>
<address_component>
<long_name>United States</long_name>
<short_name>US</short_name>
<type>country</type>
<type>political</type>
</address_component>
<address_component>
<long_name>53065</long_name>
<short_name>53065</short_name>
<type>postal_code</type>
</address_component>
<geometry>
<location>
<lat>43.6835160</lat>
<lng>-88.5478820</lng>
</location>
<location_type>ROOFTOP</location_type>
<viewport>
<southwest>
<lat>43.6821670</lat>
<lng>-88.5492310</lng>
</southwest>
<northeast>
<lat>43.6848650</lat>
<lng>-88.5465330</lng>
</northeast>
</viewport>
</geometry>
</result>
</GeocodeResponse>
It just seems so basic that it should just work but I've been trouble shooting it all afternoon. Can anyone point to the rookie mistakes I'm making here? When I preview the step in the transformation it just breaks and doesn't have any data to display.
Cheers and thanks!
Walter.