This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert XML to MSWord using Java.

 
Vikram Kalmegh
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I want to convert XML file to a readable MSword file using DOM and Java.
Please Help. :roll:
 
Jan Cumps
Bartender
Posts: 2577
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fop can convert your XML to RDF (via XSLT transformation). This is readable by MS Word.

Regards, Jan
 
Vikram Kalmegh
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jan Cumps:
Fop can convert your XML to RDF (via XSLT transformation). This is readable by MS Word.

Regards, Jan


Hey Jan,
I think this is ready made code. i want prepare an application in Java where i would give the source of the XML file and it will be converted in to MS Word.
So, I need the Code for the same.

Thanks.
Vikram
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Creating doc files is tricky. Creating RTF -which is perfectly readable by Word- seems a much easier proposition, especially as raw RTF is human-readable.
[ March 09, 2007: Message edited by: Ulf Dittmer ]
 
Jan Cumps
Bartender
Posts: 2577
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want prepare an application in Java where i would give the source of the XML file and it will be converted in to MS Word.
You can embed it in your application.


So, I need the Code for the same.

The code is available for you.

Regards, Jan

Edit: by the way, where I wrote RDF, it should say RTF.
[ March 09, 2007: Message edited by: Jan Cumps ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic