Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ISDefined Problems with Arrays from XML 1

Status
Not open for further replies.

MinalMoe

IS-IT--Management
Mar 25, 2004
62
0
0
GB
I am using MX7 to XMLParse and then XMLSearch tp finf variables from Flight Operators. Sadly, not every operator provides consistent XML Structures, and so certain fields are missing without any idea which are missing. If I attempt to use <cfif IsDefined to block out missing fields as below:-

<cfif IsDefined("Options_Array.XmlAttributes.UnitCost")>

I get the Error Message - Parameter 1 of function IsDefined, which is now "Options_Array.XmlAttributes.UnitCost", must be a syntactically valid variable name.

How do I get around that?

Thanks for any help.
 
xmlSearch()

once you figure it out (hint: CFML Reference) it is very nice when xml nodes, attributes, values don't always exist.



Kevin

Phase 1: Read the CFML Reference
Phase 2: ???
Phase 3: Profit!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top