When you have an XML record with a missing element (not just an empty
element), what's the best way to test for it?
I'm using CFTRY/CFCATCH, and it seems there must be a better way:
<cftry>
<cfset QuerySetCell(myQuery,'image',
myXMLDoc.data.star[idx].image.XMLText)>
<cfcatch type="Any">
<cfset QuerySetCell(myQuery,'image', '')>
</cfcatch>
</cftry>
I can't control the format of the source.. Just the parsing of whatever
shows up.
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Primary key preference quick poll Jeff Beer
- Primary key preference quick poll Sutton Yamanashi
- RE: Primary key preference quick poll Jeff Garza
- RE: Primary key preference quick poll Tony Weeg
- RE: Primary key preference quick poll Tony Weeg
- RE: Primary key preference quick poll Ricky Fritzsching
- Re: Primary key preference quick poll Tom Kitta
- RE: Primary key preference quick poll Tony Weeg
- Re: Primary key preference quick poll Tom Kitta
- RE: Primary key preference quick... Tony Weeg
- RE: Primary key preference quick... Michael T. Tangorre