简体   繁体   English

编写MS Word 2007 XML

[英]Writing MS Word 2007 XML

How would I write Word 2007 XML (WordProcessingML) on my own? 我将如何独自编写Word 2007 XML(WordProcessingML)? I have a requirement to do so, where I need to write a Word 2007 XML format for a Word template. 我需要这样做,我需要为Word模板编写Word 2007 XML格式。 The important thing is I should convert a Word template doc to XML (by zipping it, etc), where I need to write Word 2007 XML with those respective tags. 重要的是,我应该将Word模板文档转换为XML(通过压缩等),在这里我需要使用这些标签分别编写Word 2007 XML。 How can I do this? 我怎样才能做到这一点?

I'm not sure what you mean by "on your own," but there is an existing API for this: 我不确定“单独”是什么意思,但是有一个现有的API:

Apache POI - the Java API for Microsoft Documents Apache POI-Microsoft文档的Java API

If it doesn't do what you need it to, just extend it. 如果它不能满足您的需求,则只需对其进行扩展即可。

转到OpenXMLDeveloper-您可以在WordprocessingML上获得大部分信息,并链接到其他地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM