public void normalize(){
  List<WbXmlContent> newContents=new ArrayList<WbXmlContent>();
  StringBuilder sb=new StringBuilder();
  for (  WbXmlContent content : contents) {
    if (content.isString() && !content.isEntity()) {
      sb.append(content.getString());
    }
 else {
      if (sb.length() > 0) {
        newContents.add(new WbXmlContent(sb.toString()));
        sb.setLength(0);
      }
      newContents.add(content);
    }
  }
  if (sb.length() > 0) {
    newContents.add(new WbXmlContent(sb.toString()));
  }
  contents=newContents;
  compacted=false;
}

public void normalize ( ) { List < WbXmlContent > newContents = new ArrayList < WbXmlContent > ( ) ; StringBuilder sb = new StringBuilder ( ) ; for ( WbXmlContent content : contents ) { if ( content . isString ( ) && ! content . isEntity ( ) ) { sb . append ( content . getString ( ) ) ; } else { if ( sb . length ( ) > 0 ) { newContents . add ( new WbXmlContent ( sb . toString ( ) ) ) ; sb . setLength ( 0 ) ; } newContents . add ( content ) ; } } if ( sb . length ( ) > 0 ) { newContents . add ( new WbXmlContent ( sb . toString ( ) ) ) ; } contents = newContents ; compacted = false ; }
method that joins all consecutive string contents into one . after that the element is nor compacted .
