Im unfortunatly rather new to docx4j and I am trying to figure out how to check a checkbox within a template that I have.
I tried working with Xpaths and get the Node that way but Im not sure I got it right, also even if I manage getting the right Node Im not quite sure how to change the value properly, replacing text I managed to figure out but I havent figured out changing a attribute value yet.
checking the document.xml i found the name of the Checkbox and the attributes it has
- Code: Select all
And I tried diffrent premutations of Xpaths, for example:
Would this find the Node I want? If not, how could I get the node and change the attribute correctly?