[jdom-interest] setContent( (Content)null ) should "clear existing content" or Docs should be updated

Bjorn Roche bjorn at xowave.com
Mon Apr 12 16:47:11 PDT 2010

Hey all,

According to the docs for Document, calling  
setContent( (Content)null ) should "clear existing content".  
(Specifically, it says, "Passing a null child clears the existing  
content.") Unfortunately, when I tried this, I got an  
IllegalAddException. I got the behaviour I wanted by calling  
removeContent(), so I didn't investigate further or save my stack  
traces, sorry, but if necessary I can go back and try again.

That for JDOM. 'Tis awesome!


Bjorn Roche
XO Wave
Digital Audio Production and Post-Production Software

More information about the jdom-interest mailing list