I am developing an page that will collect an address and I would like to interface the USPS API to validate and reformate the address into a standard format. I understand how to send the request via the API (using CFHTTP) but the response back is an XML response. Here is a sample from the docs:
<AddressValidateResponse><Address ID="1"><Address2>8 WILDWOOD DR</Address2>
How do I use CF to parse the response of XML? Something simple (I HOPE)?
Also, is there a way to format XML as it is part or the form being sent to USPS. Here is a sample request:
&XML=<AddressValidateRequest USERID="xxxxxxx"><Address ID="1"><Address1>
</Address1><Address2>8 Wildwood Drive</Address2><City>Old Lyme</City>
Thanks much in advance,