views:

112

answers:

3

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 (by zipping it, etc), where I need to write Word 2007 XML with those respective tags. How can I do this?

A: 

docx4j

oh, "Oops! Your answer couldn't be submitted because: body is too short"

Maybe its long enough now!

plutext
+1  A: 

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.

Dolph
A: 

Go to OpenXMLDeveloper - you can get most of the information there on WordprocessingML and links out to other places.

Otaku