by jason » Tue Aug 08, 2017 9:22 pm
Usually you'd use an OpenDoPE Word AddIn to create a template with the correct structure, then at run time pass in an XML file. Docx4j will then replace the relevant custom xml part with that xml file.
To understand what you have done wrong, I'd need to see the template file.