XMLText refers to text between nodes:

<text>This is XMLText</text>

Use ToString(nodes[1]) and strip off the xml declaration at the top and
you're good to go.

Ade

-----Original Message-----
From: DRE [mailto:[EMAIL PROTECTED]
Sent: 13 August 2005 20:56
To: CF-Talk
Subject: Re: raw XML text of a node??


Its not my xml.  I'm parsing a feed that I dont have control over.
DRE

On 8/13/05, Ewok <[EMAIL PROTECTED]> wrote:
> Wrap it with <![CDATA[]]>
>
> Eg.
>
> <me>
> <what><![CDATA[<div><p>hello</p></div>]></what>
> </me>
>
> -----Original Message-----
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 13, 2005 2:36 PM
> To: CF-Talk
> Subject: RE: raw XML text of a node??
>
> Throw a ToString() in there somewhere, see if that helps.
>
> Ade
>
> -----Original Message-----
> From: DRE [mailto:[EMAIL PROTECTED]
> Sent: 13 August 2005 17:28
> To: CF-Talk
> Subject: raw XML text of a node??
>
>
> Hi, This amazes me. It seems there is no function to get the raw xml
> component of a node?
>
> See this code
>
> <cfsavecontent variable="me">
> <me>
> <what>
> <div><p>hello</p></div>
> </what>
> </me>
> </cfsavecontent>
>
> <cfset me1 = xmlparse(me)>
>
> <cfset nodes = xmlsearch(me1,"//what")>
>
> <cfdump var="#nodes[1]#">
>
> <cfoutput>#nodes[1].XMLText#</cfoutput>
>
> You can see in the cfdump the html text I want to extract
> (<div><p>hello</p></div>) but when I go to xmltext there is nothing
> there.  It continues to treat it as xml and break it up into
> structures.
>
> Anybody know if theres a trick or missed function or do I have to go
> to java and see if that implementation is more sophistocated?
>
> DRE
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.8/71 - Release Date: 12/08/2005
>
>
>
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214871
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to