|Aug17-09, 08:36 PM||#18|
Need Help Developing Algorithm to Decode MathML
The format of MathML is XML.
Hook a SAX Parser into your VBA environment (You can call a c version or see if VBA has an xml SAX interface, or DOM Tree navigation will do if you don't want to use basic SAX.
Use the handler call backs to walk through the MathML code and write a state machine parser that will map that to the standard equation syntax format.
Note: You may have already created a good enough custom parse of MathML to bypass SAX, but checking out this option might be interesting even if you don't decide to use it.
Build up some basic bottom up transformations and then see if you can stitch them together with an overlaying structure that allows you to invoke them recursively as needed to make the transformation.
I'm simply trying to give you a method of approach, not over complicate the issues, read the comments a couple of times and think about it.
|Aug17-09, 08:43 PM||#19|
Here is a ref to the xml and vba interface:
|Similar Threads for: Need Help Developing Algorithm to Decode MathML|
|Matrix Algebra to decode a message||Precalculus Mathematics Homework||0|
|HOw do u decode this statement to find its equivalent?||Calculus & Beyond Homework||4|
|MATHML, need help||Computing & Technology||4|
|M13:Can You decode this?||General Astronomy||1|
|MathML ?||General Math||3|