Logical AND selector - Solve and win Celtics tix (no joke!)

Logical AND selector - Solve and win Celtics tix (no joke!)

Any Boston-area jQuery gurus out there?

I'm building a Celtics news archive for the official team website in jquery that displays a table of articles based on XML data. I'd like for readers to be able to sort the archive with dropdowns based on 3 choices: a player's name, the author's name, or the season to which the article is relevant, or up to all 3 factors if they so desire (i.e. Logical AND).

I can get the table to pull articles that match at least one of all three criteria with the following code, and it will show all of the author matches first, followed by player matches and then season matches (basically using logical OR):

$("article>author:contains("+selectedAuthor+"), article>player:contains("+selectedPlayer+"), article>season_year:contains("+selectedSeason+")",xmlDataSet).parent().each(function(i) {


My research tells me that separating these selectors with commas will activate a logical OR query. While it seems that listing the selectors immediately after one-and-other is supposed to provide a logical AND query, it returns an empty set of data.

What I need is for this code to pull the intersection (logical AND) of all three drop downs.

My XML looks like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<newsArchive version="1">
   <title>Celtics News Archive</title>
   <info>http://www.celtics.com</info>
   <newsList>   
      <article>
            <headline>C's Won't Back Down: Even Series 1-1</headline>
            <author>Peter Stringer</author>
            <date>5/6/09</date>
            <link>/celtics/news/sidebar/sidebar050609-rondo-dunk-symbolic.html</link>
            <player>Rajon Rondo</player>
            <section>Sidebar</section>
            <season_type>2009 Playoffs</season_type>
            <season_year>2008-09</season_year>
      </article>
      <article>
            <headline>Eddie House Shoots Magic Out the Door</headline>
            <author>Couper Moorhead</author>
            <date>5/6/09</date>
            <link>/celtics/news/sidebar/sidebar050609-house-shoots-magic.html</link>
            <player>Eddie House</player>
            <section>Sidebar</section>
            <season_type>2009 Playoffs</season_type>
            <season_year>2008-09</season_year>
      </article>
      <article>
            <headline>Celtics Tie Series Behind House's 31</headline>
            <author>Marc D'Amico</author>
            <date>5/6/09</date>
            <link>/celtics/game_recap/recap050609-celtics-tie-series.html</link>
            <player>Eddie House</player>
            <section>Recap</section>
            <season_type>2009 Playoffs</season_type>
            <season_year>2008-09</season_year>
      </article>
      <article>
            <headline>WEEI.com: No Stars? No Problem</headline>
            <author>Jess Camerato</author>
            <date>5/6/09</date>
            <link>http://www.weei.com/sports/boston/celtics/jessica-camerato/no-stars-no-problem/</link>
            <player>Paul Pierce</player>
            <section>Sidebar</section>
            <season_type>2009 Playoffs</season_type>
            <season_year>2008-09</season_year>
      </article>   
   </newsList>
</newsArchive>


Can anyone help? I've pulled my hair out trying to solve this. I'm no programming guru but know enough to be dangerous...

And yes, I'm serious about the tickets...please drop me a line if you have a solution.

- Peter Stringer
Internet Operations Manager
Boston Celtics
pstringer@celtics.com