My code:
- Code: Select all
RelationshipsPart rp = wordMLPackage.getMainDocumentPart().getRelationshipsPart();
for (Relationship r : rp.getRelationships().getRelationship()) {
if (r.getType().equals(Namespaces.FOOTER)) {
FooterPart fp = ((FooterPart) rp.getPart(r));
// setup is a HashMap(String, String), the same one I use for the other variable replace which is working on the MainDocumentPart
fp.variableReplace(setup);
}
}