You can also use exslt:node-set if not with a Microsoft XML parser.