Basic question: How can I bind an xml document/string to a docx ?
I'm trying to create a docx from a another docx (template) that has several content controls. I've done the bindings with the Word 2007 Content Control Toolkit and I've been able to execute a small example based on the http://www.docx4java.org/trac/docx4j/browser/trunk/docx4j/src/main/java/org/docx4j/samples/CustomXmlBinding.java sample. However, on that sample you need to explicit set the content of a control via the setNodeValueAtXPath call. I don't want to deal with the controls and xml nodes and bind them "manually".
I have a xml document "<root><a>1</a><b>2</b><c>3</c></root>" and I want to bind the whole XML to the customPart/item1.xml (only customPart on the docx), that has content controls binded to /root/a, ....
It seems a fairly simple question, but I've searched in the forum and the Getting Started guide and I didn't find a solution.