def _get_children_as_string(node):
out = []<EOL>if node:<EOL><INDENT>for child in node:<EOL><INDENT>if child.nodeType == child.TEXT_NODE:<EOL><INDENT>out.append(child.data)<EOL><DEDENT>else:<EOL><INDENT>out.append(_get_children_as_string(child.childNodes))<EOL><DEDENT><DEDENT><DEDENT>return '<STR_LIT>'.join(out)<EOL>
Iterate through all the children of a node.

    Returns one string containing the values from all the text-nodes
    recursively.