Hi all,
I’m trying to work out how to filter the below XML (loaded into a var called “projectsXML”) by the contents of the “tag” nodes, but can’t quite get it working.
So for instance, how would I use an E4X expression to return an XMLList that contained only those projects which have a tag of “Website”?
Here’s the xml:
<projects>
<project>
<title>My project</title>
<tags>
<tag>Website</tag>
</tags>
</project>
<project>
<title>Another project</title>
<tags>
<tag>Game</tag>
</tags>
</project>
<project>
<title>Yet another one</title>
<tags>
<tag>Website</tag>
<tag>Game</tag>
<tag>Application</tag>
</tags>
</project>
<project>
<title>And another</title>
<tags>
<tag>Game</tag>
<tag>Website</tag>
</tags>
</project>
</projects>
Thanks!