ah, the isXML (CFMX 7 function) :
 Variable IsXML is undefined.

The error occurred in /var/www/html/reactor/core/object.cfc: line 239
Called from /var/www/html/reactor/core/object.cfc: line 185
Called from /var/www/html/reactor/core/objectTranslator.cfc: line 21
Called from /var/www/html/reactor/core/objectFactory.cfc: line 102
Called from /var/www/html/reactor/reactorFactory.cfc: line 35
Called from /var/www/html/reactor/Data_Elements_Gateway.cfm: line 6

237 :           <!--- set the field's properties --->
238 :           <cfset xmlField.XmlAttributes["name"] =
arguments.field.getName() />
239 :           <cfif IsXML(fieldTag) AND
StructKeyExists(fieldTag.XmlAttributes, "alias") >
240 :                   <cfset xmlField.XmlAttributes["alias"] =
fieldTag.XmlAttributes.alias />
241 :           <cfelse>


There's an isXML udf:

http://www.cflib.org/udf.cfm?ID=993


<!---
 Checks to see if a string is valid XML.

 @param data     String to check. (Required)
 @return Returns a boolean.
 @author Ben Forta ([EMAIL PROTECTED])
 @version 1, August 28, 2003
--->
<cffunction name="isXML" returnType="boolean" output="no">
   <cfargument name="data" type="string" required="yes">

   <!--- try catch block --->
   <cftry>
      <!--- try to parse the data as xml --->
      <cfset xmlparse(data)>
      <!--- if xmlparse() fails, it is not xml --->
      <cfcatch type="any">
         <cfreturn false>
      </cfcatch>
   </cftry>

   <cfreturn true>

</cffunction>

And that seems to allow reactor to run ok on CFMX 6.1, so far. haven't
tried  to do much yet.  The error below comes from the isXML udf, this
line of code:

<cfset xmlparse(data)>

11:06:58.058 - Expression Exception - in
/var/www/html/reactor/core/object.cfc : line 402

            Document root element is missing.


On 4/20/06, Doug Hughes <[EMAIL PROTECTED]> wrote:
> Not sure, I havn't tested it.  Are you running into issues?  If so, let me
> know where and I'll fix it!
>
> Doug
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Daryl
> Sent: Wednesday, April 19, 2006 11:02 PM
> To: [email protected]
> Subject: Re: [Reactor For CF] New Commit committed (UPDATED!)
>
> is the latest svn build compatible with CFX 6.1, esp w/r/t isXML?
>



-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/


Reply via email to