When i use the BindingHandler :
- Code: Select all
BindingHandler.applyBindings(wordMLPackage.getMainDocumentPart());
The binder replace all occurence of variables found in Document, example : ERRORS
<w:alias w:val="ERRORS"/><w:tag w:val="ERRORS"/><w:id w:val="1975506105"/><w:lock w:val="contentLocked"/><w:dataBinding w:xpath="/variables/variable[@name='ERRORS']" w:storeItemID="{D596218A-15D1-49DD-AC23-D9CE5EDEB61C}"/><w:text w:multiLine="1"/>
How to affect only the w:dataBinding and not the others (alias / tag) when ID are the same ??
Thanks for your help.
Best Regards