DRE: Your best bet is:
cfset mycontent = nodes[1].toString() /
If you use CFML's ToString(nodes[1]), you'll end up with excess XML
declarations to strip out. Java's toString() just gives you what you
want..
--
Roger Benningfield
JournURL
http://admin.support.journurl.com/
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
The xml parser is creating nested elements of your DIV and P tags.
You need to specify that you want to keep the literal text within the
WHAT tags. To do that, use CDATA in your WHAT element:
me
what
![CDATA[divphello/p/div]]
/what
/me
Or, if you are generating the source XML in CF, you can use
Wrap it with ![CDATA[]]
Eg.
me
what![CDATA[divphello/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
, 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
, 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
6 matches
Mail list logo