zirosas
10/7/2014 - 9:32 PM

From http://stackoverflow.com/questions/9610421/how-to-get-at-an-xml-attribute-and-value-in-coldfusion-8

<ExhibitorList BoothID="164991">
    <BoothNumber>N1849</BoothNumber>
    <CompanyID>407</CompanyID>
    <CompanyNumber>166212</CompanyNumber>
</ExhibitorList>

SoapResponse = xmlParse(httpResponse.fileContent);
ResponseNodes = xmlSearch(SoapResponse, "//*[ local-name() = 'ExhibitorList' ]");
for (i = 1; i lte arrayLen(ResponseNodes); i++) {
    BoothNumber = ResponseNodes[i].BoothNumber;
    CompanyID = ResponseNodes[i].CompanyID;
    CompanyNumber= ResponseNodes[i].CompanyNumber;
    BoothID = ResponseNodes[i].XmlAttributes.BoothID;

}