public XMLElementList getChildren ( ) { if ( children != null ) { return children ; } NodeList list = dom . getChildNodes ( ) ; children = new XMLElementList ( ) ; for ( int i = 0 ; i < list . getLength ( ) ; i ++ ) { if ( list . item ( i ) instanceof Element ) { children . add ( new XMLElement ( ( Element ) list . item ( i ) ) ) ; } } return children ; }
Get the complete list of children for this node