In Maple 8 (or later), the following commands are the basis of generating MathML via scripts.
> MathML:-Export( expr ): > XMLTools:-Print( % );
A Test Suite is available to check browsers, most of whom are listed here