use the selectSingleNode method or use the array accessor On 12/7/05, Mike Boutin <[EMAIL PROTECTED]> wrote: > > even in this case the result is undefined > > string = XPath.selectNodes(my_xml, "/pathto[1]/xml").nodeValue; <!-- > single node > > Johannes Nel wrote: > > >sorry no, u r doing a query which returns an array, try slectSingleNode, > and > >that will work > > > >On 12/7/05, Johannes Nel <[EMAIL PROTECTED]> wrote: > > > > > >>try dropping the last slash in ur xpath statement > >> > >>On 12/7/05, Merrill, Jason <[EMAIL PROTECTED] > wrote: > >> > >> > >>>>>Why is it a workaround? Doesn't the XPath return the XMLNode? > >>>>>I haven't used this XPath-extension, but maybe I should check i out. > >>>>> > >>>>> > >>>Morten, I'm not sure it returns the actual node - it might convert it > to > >>>another object instead because I too cannot get your suggestions to > >>>work. Could you send an xfactorstudio Xpath Actionscript example of > >>>what you mean? If you haven't used those classes before, then its > >>>interesting that you are giving advice about a product you don't seem > to > >>>know the details of. I like Mike cannot get your suggestions to work, > >>>which if I am interpreting correctly, would mean: > >>> > >>>myString = > >>>XPath.selectNodes > (my_xml,"rootNode/myChildNodeNode/myChildNode/").nodeVa > >>>lue; > >>> > >>>That returns undefined when I try it. Or are you suggesting something > >>>else? > >>> > >>> > >>> > >>>Jason Merrill | E-Learning Solutions | icfconsulting.com > >>> > >>> > >>> > >>> > >>> > >>> > >>>NOTICE: > >>>This message is for the designated recipient only and may contain > >>>privileged or confidential information. If you have received it in > error, > >>>please notify the sender immediately and delete the original. Any other > use > >>>of this e-mail by you is prohibited. > >>>_______________________________________________ > >>>Flashcoders mailing list > >>>Flashcoders@chattyfig.figleaf.com > >>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >>> > >>> > >>> > >> > >>-- > >>j:pn > >> > >> > >> > > > > > > > >-- > >j:pn > >_______________________________________________ > >Flashcoders mailing list > >Flashcoders@chattyfig.figleaf.com > >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >
-- j:pn _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders