def ApplyParsedXPathQuery(trees, xpath_query):
    """ Apply a parsed XPath Query to a list (sequence) of `trees`."""
    filtered_nodes = iter(trees[:])
    for q in xpath_query:
        filtered_nodes = q.Filter(filtered_nodes)
    return filtered_nodes
