Hi,
I really need you guys' help with getting string within string. I have an address validation code that will send a request string to UPS, and if the address is validated, UPS will send a response string back. The problem starts here. Once I get the response string, I want to be able to display only city, state and zipcodes, but I don't know how to grab those values from the response string. The response string looks like this:
So, the only values I want to display are (for example)Madison , WI, 53702, 53708.
Thanks
aboon
I really need you guys' help with getting string within string. I have an address validation code that will send a request string to UPS, and if the address is validated, UPS will send a response string back. The problem starts here. Once I get the response string, I want to be able to display only city, state and zipcodes, but I don't know how to grab those values from the response string. The response string looks like this:
Code:
<?xml version="1.0"?> <AddressValidationResponse> <Response> <TransactionReference> <CustomerContext>Customer Data</CustomerContext> <XpciVersion>1.0001</XpciVersion></TransactionReference> <ResponseStatusCode>1</ResponseStatusCode> <ResponseStatusDescription>Success</ResponseStatusDescription></Response> <AddressValidationResult> <Rank>1</Rank> <Quality>0.9254</Quality> <Address> <City>MADISON</City> <StateProvinceCode>WI</StateProvinceCode></Address> <PostalCodeLowEnd>53701</PostalCodeLowEnd> <PostalCodeHighEnd>53708</PostalCodeHighEnd></AddressValidationResult></AddressValidationResponse>
Thanks
aboon
Comment