public void removeEmptyText(JwXmlElement e) {
   for (JwXmlNode n : e.getChildren().getShallowCopy())
     if (n.isText() && n.asText().isEmpty()) e.removeChild(n);
 }
 public void normalizeNode(JwXmlNode e) {
   if (e.isDocument()) normalizeDocument(e.asDocument());
   if (e.isElement()) normalizeElement(e.asElement());
   if (e.isText()) normalizeText(e.asText());
 }