MdxParser mdxParser =
parserFactory.createMdxParser(connection);
MdxValidator mdxValidator =
parserFactory.createMdxValidator(connection);
SelectNode select = mdxParser.parseSelect(mdx);
SelectNode validatedSelect = mdxValidator.validateSelect(select);
Util.discard(validatedSelect);
} finally {
Util.close(null, null, connection);
}
}