I am having a list of parts which could contain parts themselves. Actually a bill of material (BOM). Some of the parts have an element which identifies them as "spare parts". When doing my transformation into another XML-file, I am only interested in the nodes (and ancestors) which contain "spare parts", in other words I am having a list of parts which could contain