After looking at DOM4J, it appears that these guys added this capability recently ("stripWhitespaceText"). This is effectively very convenient when dealing with data centric document. Can we add it to JDOM?