public Collection < Xml > getChildren ( String name ) { Check . notNull ( name ) ; final Collection < Xml > nodes = new ArrayList <> ( 1 ) ; final NodeList list = root . getChildNodes ( ) ; for ( int i = 0 ; i < list . getLength ( ) ; i ++ ) { final Node node = list . item ( i ) ; if ( name . equals ( node . getNodeName ( ) ) ) { nodes . add ( new Xml ( document , ( Element ) node ) ) ; } } return nodes ; }
Get the list of all children with this name .