RE: [Flashcoders] flash and xpath

2007-05-17 Thread Jason Law
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

Re: [Flashcoders] flash and xpath

2007-05-17 Thread Johannes Nel
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

RE: [Flashcoders] flash and xpath

2007-05-17 Thread David Ngo
, 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

RE: [Flashcoders] flash and xpath

2007-05-17 Thread Karina Steffens
@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

RE: [Flashcoders] flash and xpath

2007-05-17 Thread Merrill, Jason
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 . */

Re: [Flashcoders] flash and xpath

2007-05-16 Thread Johannes Nel
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

RE: [Flashcoders] flash and xpath

2007-05-16 Thread Jason Law
, 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

RE: [Flashcoders] flash and xpath

2007-05-16 Thread Merrill, Jason
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

RE: [Flashcoders] flash and xpath

2007-05-16 Thread Kerem Iseri
-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