List<HTMLNode> children = node.getChildrenNode();
for (HTMLNode ele : children)
close((NodeImpl)ele);
NodeConfig config = node.getConfig();
if (config.children().length > 0 || config.children_types().length > 0)
{
Iterator<HTMLNode> iter = node.getChildren().iterator();
while (iter.hasNext())
{
HTMLNode child = iter.next();