将DOCX转换为XML文件 [英] Convert DOCX to XML file

查看:169
本文介绍了将DOCX转换为XML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用docx和xml文件进行翻译,不是所有的翻译工具都可以读取xml,而是docx,这就是为什么我和xml可以更好地相互分配的原因,我想将纯文本转换为docx到xml并向后(从xml到docx),我可以从什么开始,您知道是否有一种方法可以使用Java进行编程吗?dom4j有可能吗?

I need to use docx and xml files for translation prozess, not all of the translation tools can read xml, but docx, thats why i, 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 if there is a way to do it programmatically using java? is it with dom4j possible?

推荐答案

您可以查看 docx4j 该网站说:

docx4j是用于创建和操作Microsoft Open的Java库XML(Word docx,Powerpoint pptx和Excel xlsx)文件.

docx4j is a Java library for creating and manipulating Microsoft Open XML (Word docx, Powerpoint pptx, and Excel xlsx) files.

或者, Apache POI .该网站说:

Apache POI项目的任务是创建和维护Java API.用于根据Office Open XML处理各种文件格式标准(OOXML)和Microsoft的OLE 2复合文档格式(OLE2).简而言之,您可以使用Java读写MS Excel文件.

The Apache POI Project's mission is to create and maintain Java APIs for manipulating various file formats based upon the Office Open XML standards (OOXML) and Microsoft's OLE 2 Compound Document format (OLE2). In short, you can read and write MS Excel files using Java.

两个就足够了.由于您只关心 docx ,因此请先开始.如果有多种格式,请第二种.

One of the two should suffice. Since you are only concerned with docx, go for the first. If there are multiple formats, go for the second.

这篇关于将DOCX转换为XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆