This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes Convert XML to MSWord using Java. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Convert XML to MSWord using Java." Watch "Convert XML to MSWord using Java." New topic
Author

Convert XML to MSWord using Java.

Vikram Kalmegh
Greenhorn

Joined: Mar 08, 2007
Posts: 5
Hello All,
I want to convert XML file to a readable MSWord file using DOM and Java.
Please Help. :roll:


I Think !!! That's Why I am Dangerous !!!
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

Fop can convert your XML to RDF (via XSLT transformation). This is readable by MS Word.

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
Vikram Kalmegh
Greenhorn

Joined: Mar 08, 2007
Posts: 5
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
Marshal

Joined: Mar 22, 2005
Posts: 41586
    
  54
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 ]

Ping & DNS - my free Android networking tools app
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

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
 
subject: Convert XML to MSWord using Java.