Here you can find the source of getEnvVariableMap(NodeList nodes)
private static Map<String, String> getEnvVariableMap(NodeList nodes)
//package com.java2s; //License from project: Open Source License import java.util.HashMap; import java.util.Map; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class Main { private static Map<String, String> getEnvVariableMap(NodeList nodes) { Map<String, String> map = new HashMap<String, String>(); for (int i = 0; i < nodes.getLength(); i++) { Node node = nodes.item(i); String name = node.getAttributes().getNamedItem("name").getTextContent(); String value = node.getTextContent(); map.put(name, value);/*from www. j a va 2s. c o m*/ } return map; } }