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();
if (HTML.isChild(node, child.getConfig()))
continue;
iter.remove();
if (config.move() == MoveType.INSERT)
insert(node, child);
// if(config.move() == MoveType.ADD) node.getParent().addChild(child);
}
}
if (config.move() != MoveType.HEADER)
return;
HTMLNode header = null;
if (ParserService.getRootNode().getChildren().size() > 0)
{