Writing MS Word 2007 XML
How would I write Word 2007 XML (WordProcessingML) on my own? I have a requirement to do so, where I need to write a Word 2007 XML format for a Word template. The important thing is I should convert a Word template doc to XML 开发者_如何学JAVA(by zipping it, etc), where I need to write Word 2007 XML with those respective tags. How can I do this?
docx4j
I'm not sure what you mean by "on your own," but there is an existing API for this:
Apache POI - the Java API for Microsoft Documents
If it doesn't do what you need it to, just extend it.
Go to OpenXMLDeveloper - you can get most of the information there on WordprocessingML and links out to other places.
精彩评论