Using MX7 to check output of XML search.
Not quite sure what the correct code is for the StructKeyExists.
The loop is
<cfloop index="i" from="1" to="#arrayLen(Results)#">
Where the XML for Results is
<cfset results = XmlSearch(FlightXML, "//
ackageHoliday")>
where PackageHoliday.Flight.xmlAttributes.Field is the structure.
I used a variation of the following which worked elsewhere, but I realise my coding isn't quite right.
<cfif StructKeyExists(Results["Flight.XmlAttributes"], "ReturnHomeTime")>
Any advise is appreciated - thanks
Not quite sure what the correct code is for the StructKeyExists.
The loop is
<cfloop index="i" from="1" to="#arrayLen(Results)#">
Where the XML for Results is
<cfset results = XmlSearch(FlightXML, "//
where PackageHoliday.Flight.xmlAttributes.Field is the structure.
I used a variation of the following which worked elsewhere, but I realise my coding isn't quite right.
<cfif StructKeyExists(Results["Flight.XmlAttributes"], "ReturnHomeTime")>
Any advise is appreciated - thanks