assignNode(node, target);
List deleteList = new ArrayList();
Iterator ci = node.getChildren().iterator();
next: while (ci.hasNext()) {
Node child = (Node) ci.next();
if (child.isWellFormed() && child.getName() != null) {
if (child.getName().equals("symbol")) {
addSymbol(child, target);
deleteList.add(child);
} else if (child.getName().equals("facet")) {
addFacet(child, target);
deleteList.add(child);
} else if (child.getName().equals("attribute")) {
addAttribute(child, target);
deleteList.add(child);
} else if (child.getName().startsWith("convert")) {
addConverter(child, target);
deleteList.add(child);
} else if (child.getName().startsWith("validate")
|| child.getName().startsWith("validator")
|| child.getName().startsWith("commonsValidator")) {
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 (node.getName() != null && node.getName().equals("verbatim")) {
continue next;
}
if (child.isComment() || isNodeWhitespace(child)) {
// remove white space
deleteList.add(child);
}
}
}