aspose 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
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: 2510
    
  10

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: 42592
    
  65
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: 2510
    
  10

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.