Remove the 2nd cfset and see what happens.

> -----Original Message-----
> From: Rich Wild [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, July 24, 2002 3:05 PM
> To: '[EMAIL PROTECTED]'
> Subject: [ cf-dev ] CFCs & xml
> 
> 
> I have the following function:
> 
>       <cffunction name="getDataXML" access="remote" returntype="xml">
>               
>               <cfargument name="user_id" type="string">
>               
>               <cfset pkt = xmlnew()>
>               <cfset pkt.xmlRoot = XmlElemNew(pkt,"Categories")>
>               
>               <cfreturn pkt>
>       
>       </cffunction>
> 
> however, whenever this cfc is invoked I get a:
> 
> "The value returned from function getDataXML() is not of type 
> xml." error.
> 
> wtf? I used xmlnew(). How can it not be xml?
> 
> If I remove the returntype and cfdump the returned variable, 
> <cfdump> tells
> me its an xml document.
> 
> hmmm, interesting.
> 
> -------------------------------------------------------
> Rich Wild
> Senior Web Developer
> 
> -------------------------------------------------------
> e-mango                       Tel: 01202 755 300
> Gild House                      Fax: 01202 755 301
> 74 Norwich Avenue West
> Bournemouth                   Mailto:[EMAIL PROTECTED]
> BH2 6AW, UK                      http://www.e-mango.com
> -------------------------------------------------------
> This message may contain information which is legally
> privileged and/or confidential.  If you are not the
> intended recipient, you are hereby notified that any
> unauthorised disclosure, copying, distribution or use
> of this information is strictly prohibited. Such
> notification notwithstanding, any comments, opinions,
> information or conclusions expressed in this message
> are those of the originator, not of e-mango.com ltd,
> unless otherwise explicitly and independently indicated
> by an authorised representative of e-mango.com ltd.
> -------------------------------------------------------
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


Reply via email to