Page 1 of 1

Is there a convenient way to remove a node via docx4j API?

PostPosted: Fri Aug 14, 2009 10:22 pm
by eford
For example, I have a run with bold set on (along with other styling). I'd prefer to simply remove the <w:b> node rather than setting it to false. I thought I came across a description of how to remove nodes but cannot locate it now.

Re: Is there a convenient way to remove a node via docx4j API?

PostPosted: Mon Aug 17, 2009 6:05 pm
by jason
eford wrote:For example, I have a run with bold set on (along with other styling). I'd prefer to simply remove the <w:b> node rather than setting it to false. I thought I came across a description of how to remove nodes but cannot locate it now.


Does setting it to null do the trick?