super.encodeBegin(node, target, root);
List deleteList = new ArrayList();
Iterator ci = node.getChildren().iterator();
while (ci.hasNext()) {
Node child = (Node) ci.next();
if (child.isWellFormed() && child.getName() != null) {
if (child.getName().equals("attributes")) {
addAttributes(child, target);
deleteList.add(child);
} else if (child.getName().equals("symbols")) {
addSymbols(child, target);
deleteList.add(child);
} else if (child.getName().equals("converter")) {
addConverter(child, target);
deleteList.add(child);
} else if (child.getName().equals("validator")) {
addValidator(child, target);
deleteList.add(child);
} else if (child.getName().equals("actionListener")) {
addActionListener(child, target);
deleteList.add(child);
} else if (child.getName().equals("valueChangeListener")) {
addValueChangeListener(child, target);
deleteList.add(child);
}
} else {
if (child.isComment() || isNodeWhitespace(child)) {
// remove white space
deleteList.add(child);
}
}
}