Ok, thanks, but dont think i explained my self very well
Basically, i have a properties list which stores a object with a name and a
value, which are both strings. name is the attribute name, so in ur example it
will be 'id' and the value will be '1'. so knowing that information i should be
I haven't looked at your code too much but what jumped out at me is this line...
filterData = filterData.(attribute(prop.name) == prop.value);
This will try to evaluate attribute as a function with parameter prop.name and
then compare that to prop.value returning a boolean. So, the upshot is
: XMLFiltering by attributes and values
I haven't looked at your code too much but what jumped out at me is this
line...
filterData = filterData.(attribute(prop.name) == prop.value);
This will try to evaluate attribute as a function with parameter prop.name
and then compare that to prop.value
: RE: [flexcoders] Re: XMLFiltering by attributes and values
This works well:
var _trackData:XML = track
item uniqueTrackId=100 albumId=12 trackId=1 genreId=13
artistId=6584/
item uniqueTrackId=101 albumId=13 trackId=2 genreId=14
artistId=6580/
item uniqueTrackId=102
4 matches
Mail list logo