question: protected static void doConfigure ( ConfigurationSocketAdapter configuration , Document doc ) throws RuntimeException { Element root = doc . getDocumentElement ( ) ; DOMElementIterator eventTypeNodeIterator = new DOMElementIterator ( root . getChildNodes ( ) ) ; while ( eventTypeNodeIterator . hasNext ( ) ) { Element element = eventTypeNodeIterator . next ( ) ; String nodeName = element . getNodeName ( ) ; if ( nodeName . equals ( "socket" ) ) { handleSocket ( configuration , element ) ; } } }
target:  Parse the W3C DOM document.