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 Word document to XML 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
Reply locked New topic
Author

Convert Word document to XML

Abhijit Sontakey
Ranch Hand

Joined: Sep 26, 2005
Posts: 67
Hi,
I have a requirement to convert a word document to XML document that can be rendered to Web using XSL. I am looking for a code or a method to convert Word document to XML programmatically. Can any body help me in this regard. Any help will be appreciated.

Regards
Abhijit.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39542
    
  27
It's hard to work with Word documents in Java. Helpful libraries might be POI, WordApi (Windows only) and OpenOffice (all linked here). I think the most promising of these is probably OO, but it has a definite learning curve.


Ping & DNS - updated with new look and Ping home screen widget
Abhijit Sontakey
Ranch Hand

Joined: Sep 26, 2005
Posts: 67
Hi,

I was able to convert a .rtf file to XML format. However i am unable to convert a .doc file to .rtf format. Can anybody help in this regard. Any help willl be appreciated.

Regards
Abhijit.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39542
    
  27
It seems that you posted the same question here as well. Let's continue the discussion there, because you have an answer already.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Convert Word document to XML
 
Similar Threads
Conversion of formats to XML
MS-word document file to XML in Java
Convert Word to XML
Java Api for converting Word document to PDF?
Need a java code for convert PDF to Word document as well as Word document to XML. Is this possible