Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kerem Iseri
Sent: Wednesday, May 16, 2007 5:55 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] flash and xpath
Use CDATA for that node inside the XML to make flash recognise everything
you write inside
that even in there the ampersand is being shown as amp;.
-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Kerem Iseri
Sent: Wednesday, May 16, 2007 5:55 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] flash and xpath
Use CDATA for that node
, 2007 10:48 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] flash and xpath
I'm still getting the value returned as amp;. I'm starting to pull my hair
out cause of this. Could there be any other reason why this is occurring?
When I look at the file being loaded in from
@chattyfig.figleaf.com
Subject: RE: [Flashcoders] flash and xpath
I'm still getting the value returned as amp;. I'm starting
to pull my hair out cause of this. Could there be any other
reason why this is occurring? When I look at the file being
loaded in from the output as a var I see that even
I came across this problem recently... Unless you use the
nodeValue property, the returned node will be escaped when
converted to string
Uh, yeah, I posted this earlier. It uses nodeValue to escape:
/*decodes any character entities in a string. For example, it converts
amp; to . */
it seems you want to get the text value of a node. try this
var item:String = XPathAPI.selectSingleNode(doc.firstChild,
/html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign']/text()
)toString();
notice the text()
On 5/16/07, Jason Law [EMAIL PROTECTED] wrote:
I'm wondering if
, May 16, 2007 12:45 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] flash and xpath
it seems you want to get the text value of a node. try this
var item:String = XPathAPI.selectSingleNode(doc.firstChild,
/html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign']/text
One of the fields I have looks like this.
itemField Stream/item. The issue is that the value I'm
getting back from xpath is Field amp; Stream and not
Field Stream.
Use this:
/*decodes any character entities in a string. For example, it converts
amp; to . */
private function
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Law
Sent: Wednesday, May 16, 2007 11:38 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] flash and xpath
Ok, so I was able to get it to work, but now I'm coming across another
issue.
I'm
9 matches
Mail list logo