Hi Jason,
I am new to docx4j. I am facing this issue, when i am doing to multiple unmarsharlling with two sets hashmap objects for the same wordML object, the null value is getting replaced for the second hashmap key values (Substitution points. e.g. ${Participant_Name} is replaced with null) in the document.
Please help me out on this what mistake i am doing here.
HashMap 1 with some set of key values.
String text1 = XmlUtils.marshaltoString(word.getMainDocumentPart().getJaxbElement, true);
Object obj1 = XmlUtils.unmarshallFromTemplate(text1, map1);
word.getMainDocumentPart().setJaxbElement((Document)obj1);
HashMap 2 with some set of key values.
String text2 = XmlUtils.marshaltoString(word.getMainDocumentPart().getJaxbElement, true);
Object obj2 = XmlUtils.unmarshallFromTemplate(text2, map2);
word.getMainDocumentPart().setJaxbElement((Document)obj2);
Thanks,
Ganesh