Will do if you can solve this one: xAL.
AddressDetails => {
AddressType => "Residential",
CurrentStatus => "ACTIVE",
ValidFromDate => "1 Jan 2000",
Country => {
#CountryName =>
XML::LibXML::Element->new('CountryName')->appendText('United States'),
CountryNameCode => { Scheme => 'iso.3166-2', _ => 'US' },
CountryName => 'United States',
AdministrativeArea => {
Type => 'State',
AdministrativeAreaName => [
{ Type => 'Abbreviation', _ => $row->{ST} },
{ Type => 'Official', _ => $st_abbr{$row->{ST}} },
],
SubAdministrativeArea => {
Type => 'County',
SubAdministrativeAreaName => { Type => 'Official', _ =>
'JEFFERSON' },
Locality => {
LocalityName => { Type => 'Official', _ => $row->{City} },
Thoroughfare => {
cho_ThoroughfareNumber => [ { ThoroughfareNumber =>
$row->{'St #'} } ],
ThoroughfareName => $row->{Street},
}
}
},
PostalCode => {
PostalCodeNumber => $row->{Zip},
},
},
},
PostalServiceElements => {
AddressLatitude => { _ => $ll[1] },
AddressLongitude => { _ => $ll[0] },
},
},
This just plain doesn't work in any fashion. Tried just about
everything for the past two hours. I get stuff like:
<xal:AddressDetails AddressType="Residential" CurrentStatus="ACTIVE"
ValidFromDate="1 Jan 2000">
<xal:PostalServiceElements>38.000000-85.779589</xal:PostalServiceElements>
<xal:Country>USUnited States<xal:AdministrativeArea
Type="State">KY<xal:SubAdministrativeArea
Type="County"><xal:Locality><xal:Thoroughfare>1001MAIN
AVE</xal:Thoroughfare></xal:Locality></xal:SubAdministrativeArea><xal:PostalCode>40222-5555</xal:PostalCode></xal:AdministrativeArea></xal:Country>
</xal:AddressDetails>