>>Doesnt XPath.selectNodes(myxml, "pathtocontent/text()"); return the
text
>>value as well?
Sure, but I don't think that works on attribute values (as in my example
in my post).
Jason Merrill | E-Learning Solutions | icfconsulting.com
NOTICE:
This message is for the designated recipie
Mike Boutin wrote:
Doesnt XPath.selectNodes(myxml, "pathtocontent/text()"); return the text
value as well?
The documentation says, that selectNodes *always* returns an array of
XMLNode-objects - and it does. Always.
The "text()"-syntax is only used to get the XMLNode representing a text
nod
20, 2005 2:55 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Out of curiosity, XPath and String Datatype
Oddity
That's using Flash's XML object with XPath to grab the node value -
sure
that works, and is good for nodes with CDATA, but overly complex -
wrapping String()
gt;>[EMAIL PROTECTED] On Behalf Of Mike Boutin
> >>Sent: Tuesday, December 20, 2005 1:43 PM
> >>To: Flashcoders mailing list
> >>Subject: Re: [Flashcoders] Out of curiosity, XPath and String
Datatype
> Oddity
> >>
> >>Maybe something like this may
-Learning Solutions | icfconsulting.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>>-Original Message-
>>>>>From: [EMAIL PROTECTED]
[mail
Mike Boutin
> Sent: Tuesday, December 20, 2005 1:43 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype
> Oddity
>
> Maybe something like this may help?
>
>
myText=XMLNode((XPath.selectNodes(myxml,"myNodePath/mynod
E-Learning Solutions | icfconsulting.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Johan Lopes
Sent: Tuesday, December 20, 2005 1:07 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Out of curiosity, XPath and Strin
t;[EMAIL PROTECTED] On Behalf Of Ralph Caraveo
>>Sent: Tuesday, December 20, 2005 1:00 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Out of curiosity, XPath and String Datatype
Oddity
>>
>>Hi Jason,
>>
>>I've noticed simliar behavior bu
On Behalf Of Johan Lopes
>>Sent: Tuesday, December 20, 2005 1:07 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype
Oddity
>>
>>Hi Jason,
>>
>>AFAIK, XPath.selectNodes() returns an Array.
>>
>>
in!
Jason Merrill | E-Learning Solutions | icfconsulting.com
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Ralph Caraveo
>>Sent: Tuesday, December 20, 2005 1:00 PM
>>To: Flashcoders mailing list
>&
Hmm. I now see what you mean. Maybe when you pass the value without
casting it in the "raw", some V2 components such as textArea etc, does
an auto cast toString and therefore can deal with it but the
MediaPlayback component is expecting a proper String and doesn't no
what to grab it if you pass MyV
Hi Jason,
AFAIK, XPath.selectNodes() returns an Array.
/**
10 *selectNodes
11 *
12 *returns an array of nodes that match the given XPath
13 *expression using the the XMLNode (context) as the
14 *starting context for the expression
Hi Jason,
I've noticed simliar behavior but I think it's just in how you are using
it. Generally I think Xpath will return an array of XMLNode types
unless you grab a small enough piece of information. If you look in the
class files you can also use selectNodesAsString. This will force all
your
13 matches
Mail list logo