« Return to Thread: How to add two nodes with the same name on the same level?

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

by junk_mail :: Rate this Message:

Reply to Author | View in Thread

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/youraddr@...

 « Return to Thread: How to add two nodes with the same name on the same level?