Add resource filtering with <filter> element.