Hi,
jsci-mathmlimpl is an implementation of the DOM MathML API. There is also a
higher level JSci.io.MathMLParser which converts the DOM API directly into JSci
objects. See documentation/JSci.io.html for more information. What you need to
do is write a converter from the DOM, or the JSci objects into the Matlab
API/representation.
XML -> DOM (-> JSci) -> Mathlab
I´m not familar with the matlab API, so I don´t know what sort of object
representation it has. But at a guess, I assume it can evaluate matlab strings,
something like matlabEval("5^2+4"), so you probably need to convert the MathML
DOM into the matlab textual representation, and send it to the matlab evaluation
engine.
----- Original Message ----
From: avspavan <pavan@...>
To: jsci@yahoogroups.com
Sent: Monday, 27 November, 2006 5:49:30 PM
Subject: [jsci] Mathml to Java Classes
Hi:
I am interested in sending mathml to Matlab through Java and solving
the equations. But matlab inherently doesn't understand Mathml.
I have come across the package (Jsci-mathmlimpl) which seems like will
help me. I would like to know what exactly it does as I couldn't find
any example that shows conversion of mathml to java objects?! Can Jsci
convert given mathml to Java objects?? If so I think there are ways to
make Matlab understand these Java objects and solve the equations and
get the answer.
Thanks
Pavan
Yahoo! Groups Links
Send instant messages to your online friends http://uk.messenger.yahoo.com