I want to produce an XML document from another, filtering subnodes that match a specified criterion. How should I do that?