question: public static DataSourcePropertiesInterface decodeXML ( Document document , String elementName ) { if ( ( document == null ) || ( elementName == null ) ) { return null ; } Map < String , String > map = new LinkedHashMap < String , String > ( ) ; NodeList nodeList = document . getElementsByTagName ( elementName ) ; if ( nodeList . getLength ( ) > 0 ) { Node node = nodeList . item ( 0 ) ; Node child = node . getFirstChild ( ) ; while ( child != null ) { if ( child . getNodeType ( ) == Node . ELEMENT_NODE ) { map . put ( child . getNodeName ( ) , child . getTextContent ( ) ) ; } child = child . getNextSibling ( ) ; } return DataSourceConnectorFactory . getDataSourceProperties ( map ) ; } else { return DataSourceConnectorFactory . getNoDataSource ( ) ; } }
target:  Decode the data source properties from XML.