0 Replies Latest reply on Feb 26, 2007 8:15 PM by winzurf

    Detecting that a property doesn't exist

    winzurf
      I'm using an HTTPService to access a data feed (xml format) - this works fine unless the feed is corrupted, in which case downstream when I try to access a property from the feed (ie feedRequest.lastResult.data.windkph_01MnAvg) I get an error

      ReferenceError: Error #1069: Property data not found on String and there is no default value.

      How can I either detect that the data was incomplete (corrupted XML) or that the property identified above does not exist?

      I've tried tests like feedRequest.lastResult.data != null or feedRequest.lastResult.data != undefined etc.

      Thanks
      Bruce