[jQuery] Re: xml parsing bug or feature?

2007-12-06 Thread Benjamin Sterling
Equand, I think you need to do: $("Data item", xml).size() On 12/6/07, Equand <[EMAIL PROTECTED]> wrote: > > > when in the root node of xml file i have only one node with text in > it, when i parse this xml using jquery, i' am unable to get the > included node... > for example > > text > > > wh

[jQuery] Re: xml parsing bug or feature?

2007-12-06 Thread Equand
but what's the difference? do i need to write separate parsing functions for one and several items? or i can use $("Data item", xml) selector for both cases? On Dec 6, 5:31 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Equand, > I think you need to do: > > $("Data item", xml).size() > > On

[jQuery] Re: xml parsing bug or feature?

2007-12-06 Thread David Serduke
jQuery only takes two parameters on $(). (the second one is optional) $(expression, context) http://docs.jquery.com/Core/jQuery#expressioncontext so your first attempt had 3 parameters. The last one was ignored. The second one became the context so jQuery was looking for a tag in the string "

[jQuery] Re: xml parsing bug or feature?

2007-12-06 Thread Equand
yeah i'm using ajax ) thank you very much, now i see i was using pretty unstable selector, thank you ;) On Dec 6, 7:17 pm, David Serduke <[EMAIL PROTECTED]> wrote: > jQuery only takes two parameters on $(). (the second one is optional) > > $(expression, context) > > http://docs.jquery.com/Core/jQ

[jQuery] Re: xml parsing bug or feature?

2007-12-06 Thread Benjamin Sterling
Thanks for explaining that Dave. On 12/6/07, Equand <[EMAIL PROTECTED]> wrote: > > > yeah i'm using ajax ) thank you very much, now i see i was using > pretty unstable selector, thank you ;) > > On Dec 6, 7:17 pm, David Serduke <[EMAIL PROTECTED]> wrote: > > jQuery only takes two parameters on $()