File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Convert docx to xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Convert docx to xml file" Watch "Convert docx to xml file" New topic

Convert docx to xml file

S Roberts
Ranch Hand

Joined: Dec 06, 2013
Posts: 66
I need to use docx and xml files for translation prozess, not all of the translation tools can read xml, but docx, xml because it can be better assigned to each other, i want to convert plain text from docx to xml and backwards(from xml to docx), with what can i begin , do you know how can i do it programmatically using java?
Thank you
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Welcome to JavaRanch.

The Apache POI library can read .docx files, and it has special classes for extracting the text of a document. Although those may not be accurate enough, in which case you need to fall back on using the regular API.
S Roberts
Ranch Hand

Joined: Dec 06, 2013
Posts: 66
Hi Ulf,

thank you very much
I agree. Here's the link:
subject: Convert docx to xml file
It's not a secret anymore!