Hi,

I just managed to reproduce your problem and it looks like selectNodes() 
ignores the parent element if you use the double slashes and just 
interprets them in the standard XPath way, i.e. by searching the entire 
document. I'll have to take a closer look at the xml.Element class, but 
it sure looks like a bug to me.

As a workaround, changing your second XPath expression to 
"descendant::MenuTab" should work.


Regards,
Daniel

sNIk schrieb:
> forgot to mention that "alert( qx.xml.Element.getSingleNodeText( items[2],
> "//MenuTab[3]" ) )" works.
> 
> this is from the api: selectNodes((Element | Document) element, String
> query) <- the first arg. must be an element or a document. i pass an element
> to selectNodes but there goes something wrong. i also tested to access all
> the tabs ( item 2 has 4 of them ) and had no problems.
> 
> somehow i dont understand why var doh = selectNodes( selectNodes( doc, xpath
> ), xpath ); doesnt work.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to