File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2476
    
    7

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: 39541
    
  27
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 - updated with new look and Ping home screen widget
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2476
    
    7

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.
 
Similar Threads
Please include me in your group
data convertion
java.io.IOException: Unable to read entire block; 493 bytes read before EOF; expected
how to lock a file?
MS Word to XML conversion