setContent( (Content)null ) should "clear existing content" or Docs should be updated

Bjorn Roche <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
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

-----------------------------
Bjorn Roche
XO Wave
Digital Audio Production and Post-Production Software
http://www.xowave.com
http://blog.bjornroche.com
http://myspace.com/xowave
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.