public Xml getChild ( String name ) { Check . notNull ( name ) ; final NodeList list = root . getChildNodes ( ) ; for ( int i = 0 ; i < list . getLength ( ) ; i ++ ) { final Node node = list . item ( i ) ; if ( node instanceof Element && node . getNodeName ( ) . equals ( name ) ) { return new Xml ( document , ( Element ) node ) ; } } throw new LionEngineException ( ERROR_NODE + name ) ; }
Get a child node from its name .