question: public static List < ? extends Node > childNodeList ( Node node ) { if ( node == null ) return null ; List < Node > nodes = new LinkedList < Node > ( ) ; do { if ( node . getNodeType ( ) == Node . ELEMENT_NODE || node . getNodeType ( ) == Node . COMMENT_NODE ) { nodes . add ( node ) ; } } while ( ( node = node . getNextSibling ( ) ) != null ) ; return nodes ; }
target:  Return a List of Node objects that have the given name and are immediate children of the given element; if name is null, all child elements will be included. 