Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Removing children produces empty lines

843834Mar 30 2005 — edited Apr 10 2008
Hi,

when I call
element.removeChild(child);
the named child is removed from the DOM tree, but an empty line is left. How can I automatically remove this empty line? I�m using Java 1.5.0_02. XML data is stored in an org.w3c.dom.Document.

Thanks for your help. DMS
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2008
Added on Mar 30 2005
7 comments
2,353 views