Subj : Re: Rhino/E4X problem with filter
To : Martin.Honnen
From : Igor Bukanov
Date : Wed Aug 04 2004 05:49 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')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That should be
xml.god.(@name == 'Kibo')
In addition you need to issue:
xml.god.(@name == 'Kibo').toXMLString() to get since
otherwise it would print the internal context of which is empty.
Regards, Igor
.