e4x filter on more than one children?
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-05-19T08:36:53Z
Indexed on
2010/05/19
10:00 UTC
Read the original article
Hit count: 262
e4x
|JavaScript
My XML Looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<projects>
<project
id="1"
thumb="media/images/thumb.jpg"
>
<categories>
<id>1</id>
<id>2</id>
</categories>
<director>Director name</director>
<name><![CDATA[IPhone commercial]]></name>
<url><![CDATA[http://www.iphone.com]]></url>
<description><![CDATA[Description about the project]]></description>
<thumb><![CDATA[/upload/images/thumb.jpg]]></thumb>
</project>
</projects>
But I cannot figure out how to filter projects based on a category id? Does anybody know how to do ? :)
Something like:
projects.project.(categories.(id == 3))
Just returns all items :(
© Stack Overflow or respective owner