I've done some investigation on nthis issue and found this...

If you modify your path like this (note the /text() at the end) you should
get the value correctly...

var e = XPath.selectNodesAsString
(this,"/weather/dayf/[EMAIL PROTECTED]'4']/[EMAIL PROTECTED]'d']/icon/text()");


Interestingly, if you try this it won't work...

var e = XPath.selectNodesAsNumber
(this,"/weather/dayf/[EMAIL PROTECTED]'4']/[EMAIL 
PROTECTED]'d']/icon/number()");

...but this does...

var e = XPath.selectNodesAsNumber
(this,"/weather/dayf/[EMAIL PROTECTED]'4']/[EMAIL PROTECTED]'d']/icon/text()");

This final example actually returns a Number (not a String as the first
example does) which is what I guess you'd want to get from the <icon>
element but seems to do it the wrong way (using text() )!

I'm going to report this info to Xfactor Studio.

Hope this is helpful.
A.

On 3/11/06, erixtekila <[EMAIL PROTECTED]> wrote:
>
>
> Le 11 mars 06, à 11:27, Adrian Park a écrit :
>
> > I encountered exactly the same issue on the project I'm currently
> > working
> > on. I got around the problem by using XPath.selectNodes rather than
> > XPath.selectNodesAsString.
> Please send a mail to XPath author to get this fixed.
> -----------
> erixtekila
> http://blog.v-i-a.net/
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to