How to add two nodes with the same name on the same level?

[email protected]
Newsgroups gmane.comp.java.jdom.general
Organization Nowa Poczta Wirtualnej Polski S.A. http://www.wp.pl/
Message-ID <[email protected]>
hi,

Is it possible to add two nodes with the same name on the same level of
xml file using .addcontent() method?

I'm trying to do so and I get following error:

Exception in thread "main" org.jdom.IllegalAddException: The Content
already has an existing parent "tree"...

Is there any way to disable that execption and force jdom to create two
nodes with the same name?

regards,
sly

----------------------------------------------------
Gadają o tym wszędzie!!! 
SPRAWDź alefaceci.pl
http://klik.wp.pl/?adr=www.alefaceci.pl&sid=607


_______________________________________________
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.