Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert docx to xml file

 
S Roberts
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

thank you very much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic