getting only leaf and groupe node types in news selection query