[thelist] xml and classic asp

Brian Cummiskey Brian at hondaswap.com
Mon Jul 31 13:02:20 CDT 2006


Hi Guys,

I'm working on a validation tool with a 3rd party. I create an xml 
formated document on the fly, send it over to them, and they return one 
back with their response.

I got all that together, but now I'm not sure where to go as far as 
displaying the returned data on my page.
I don't care about ajax, so i can take a page load if needed.

Code:

. . . bunch of code that works... . . returnedxml = 
objXMLHttp.responseXML.XML response.write returnedxml



This properly returns an xml document with the results. I need to 
display these options in a classic ASP page. How do I "explode" out the 
elements?



The XML that comes back is formatted like this:

<<AddressKeyFormat>
  <ConsigneeName></ConsigneeName>
  <AddressLine></AddressLine>
  <PoliticalDivision2></PoliticalDivision2>
  <PoliticalDivision1></PoliticalDivision1>
  <PostcodePrimaryLow></PostcodePrimaryLow>
  <PostcodeExtendedLow></PostcodeExtendedLow>
<CountryCode></CountryCode>
</AddressKeyFormat>

If there are more than 1 results, it will repeat the 
<AddressKeyFormat></AddressKeyFormat> block for the next option and so on.



More information about the thelist mailing list