Subj : Re: Rhino/E4X problem with filter To : netscape.public.mozilla.jseng From : Martin Honnen Date : Wed Aug 04 2004 05:42 pm Martin Honnen wrote: > > I am using the E4X preview from > ftp://ftp.mozilla.org/pub/mozilla.org/js/e4x_preview.zip > and when I run it here with the following example I am astonished that > the filter returns a list with two elements instead of simple one element: > > C:\Programme\Mozilla\rhinoEX420040804>e4x.cmd > Rhino 1.5 release 5 2004 03 25 > js> var xml = ; > js> xml > > > > > js> xml.god.(@name = 'Kibo') > > > js> > > Is that a bug or am I misunderstanding what a filter should do (which is > quite possible as I have just started with E4X)? It seems posting questions helps to find the mistake made, of course within JavaScript such a filter needs to be written as xml.god.(@name == 'Kibo') otherwise it is an assigment. I am obviously XPath impaired and need to forget my XPath skills when dealing with E4X. -- Martin Honnen http://JavaScript.FAQTs.com/ .