Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

After removing an xml node i have a whitespace in my doc

 
Christopher Whu
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


if i want to delet the last node, the xml looks like



Please let me know what i am doing wrong... ty
 
Rob Spoor
Sheriff
Pie
Posts: 20533
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try using a Format in your XMLOutputter constructor. Format.getPrettyFormat() is my favorite.

Since this is about JDOM, can somebody move this to Other Open Source Projects?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic