コード例 #1
0
 public void removeEmptyText(JwXmlElement e) {
   for (JwXmlNode n : e.getChildren().getShallowCopy())
     if (n.isText() && n.asText().isEmpty()) e.removeChild(n);
 }
コード例 #2
0
 public void normalizeChildren(JwXmlElement e) {
   for (JwXmlNode n : e.getChildren()) normalizeNode(n);
 }