1 Reply Latest reply on Dec 27, 2007 1:16 PM by Newsgroup_User

    Searching XML Doc AND checking for existence

    dbranch
      I have the following code for parsing and searching an XML document. As long as the XML document contains the Objective Element it works fine. However, the XML document does not always have an Objective Element and when it doesn't I get the following error.
      "Element OBJECTIVE.XMLTEXT is undefined in a Java object of type class coldfusion.xml.XmlNodeMap referenced as "
      I have tried sever times to qualify the expression within a <cfif ISDEFINED> without success. Does any one know how to check for the existence of the Objective Element to stop this error.