File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MathML to Expression Conversion using Ecore

 
Anket Jain
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

If any one have source code to convert MAthMl to Expression using Ecore ..then pls reply...
 
Joanne Neal
Rancher
Pie
Posts: 3742
16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.
We don't just give out source code here. If you have a problem tell us what it is and what you have done to try and resolve it and we will do our best to help.
 
Anket Jain
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m writing a parser to convert MAthML to Expression using Ecore but ...i have to search MathMl recursively for different operations as divide or Subtract and so on .....
For Eg :


<?xml version="1.0" encoding="ASCII"?>
<ml:math xmlns:ml="http://www.w3.org/1998/Math/MathML">
<ml:apply>
<ml:minus/>
<ml:apply>
<ml:minus/>
<ml:apply>
<ml:sum/>
<ml:ci>1</ml:ci>
<ml:ci>1</ml:ci>
</ml:apply>
<ml:ci>2</ml:ci>
</ml:apply>
<ml:ci>3</ml:ci>
</ml:apply>
</ml:math>



Now i want the output to be 1+1-2-3.....Pls help
 
Joanne Neal
Rancher
Pie
Posts: 3742
16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So which bit are you having problems with ? Parsing the xml, extracting the values or producing the output ? Show us what you have tried so far.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic