Zip Search:XML Response:Find City in Zip

From Melissa Data Wiki
Jump to navigation Jump to search

← Zip Search

Sample XML Response

<?xml version="1.0" ?> 
<ResponseArray xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Version xmlns="urn:mdWebServiceZipSearch">2.0.22</Version> 
  <TransmissionReference xmlns="urn:mdWebServiceZipSearch">Test
  </TransmissionReference> 
  <Results xmlns="urn:mdWebServiceZipSearch">ZS01</Results> 
  <TotalRecords xmlns="urn:mdWebServiceZipSearch">4</TotalRecords> 
  <ZipRecord xmlns="urn:mdWebServiceZipSearch">
    <RecordID>1</RecordID> 
    <Zip>92688</Zip> 
    <ZipType /> 
    <City>
      <Name>Rancho Santa Margarita</Name> 
      <Abbreviation>Rcho Sta Marg</Abbreviation> 
    </City>
    <County>
      <Name>Orange</Name> 
      <FIPS>06059</FIPS> 
    </County>
    <State>CA</State> 
    <AreaCode>949</AreaCode> 
    <TimeZone>
      <Name>Pacific Time</Name> 
      <Code>08</Code> 
    </TimeZone>
    <Latitude>33.6370</Latitude> 
    <Longitude>-117.6042</Longitude> 
    <LastLineIndicator>L</LastLineIndicator> 
    <LastLineNumber>Z22621</LastLineNumber> 
    <PreferredLastLineNumber>Z22621</PreferredLastLineNumber> 
    <FacilityCode>B</FacilityCode> 
  </ZipRecord>

...

  <ZipRecord xmlns="urn:mdWebServiceZipSearch">
    <RecordID>4</RecordID> 
    <Zip>92688</Zip> 
    <ZipType /> 
    <City>
      <Name>Rsm</Name> 
      <Abbreviation>Rsm</Abbreviation> 
    </City>
    <County>
      <Name>Orange</Name> 
      <FIPS>06059</FIPS> 
    </County>
    <State>CA</State> 
    <AreaCode>949</AreaCode> 
    <TimeZone>
      <Name>Pacific Time</Name> 
      <Code>08</Code> 
    </TimeZone>
    <Latitude>33.6370</Latitude> 
    <Longitude>-117.6042</Longitude> 
    <LastLineIndicator /> 
    <LastLineNumber>Z24594</LastLineNumber> 
    <PreferredLastLineNumber>Z22621</PreferredLastLineNumber> 
    <FacilityCode>N</FacilityCode> 
  </ZipRecord>
</ResponseArray>