title: DOM avoid preserve whitespaces
body: <p>Is it any way to avoid preserve whitespaces in DOM (Whichever java library) ?</p>
  
  <p>I have an XML file validated by an XSD schema. By this schema, only <code>&lt;text&gt;</code> element contains texts. Another element contains only element nodes. When I edit XML file, for most visibility, I have several types of whitespaces like tab, blank, carriage return,...</p>
  
  <p>How I can to parse my XML (without xslt, only java libraries) without preserve all whitespaces not authorized by schema ?</p>