Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert XML to MSWord using Java.

 
Vikram Kalmegh
Greenhorn
Posts: 5
  • 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: 2599
12
C++ Linux Netbeans IDE
  • 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
  • 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
Posts: 42968
73
  • 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: 2599
12
C++ Linux Netbeans IDE
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic