I'm using TinyMCE and the ASCIIMathML javascript library to provide equation editing capabilities on a web page. It's easy to take the ASCIIMathML, convert it to MathML, and then render the equation with any of the wonderful MathML rendering libraries.
What I haven't been able to figure out (and maybe I'm just missing something) is how to go in the other direction MathML -> ASCIIMathML. I need to be able to support editing of documents that we'll be importing that contain MathML. Does such a library exist that converts in the other direction? My website stack is built on Java, so a Java library would be ideal.