public static void main(String[] args) {

		// 下面是需要解析的xml字符串例子
		String xmlString = "<html>"
							+"<head>"
								+"<title>domj解析一个例子</title>"
								+ "<script>" 
									+ "<username>yangrong</username>"
									+ "<password>123456</password>"
								+ "</script>"
							+ "</head>"
							+ "<body>"
								+ "<result>result</result>"
								+ "<form>"
									+ "<banlce>banlce</banlce>"
									+ "<subID>123</subID>"
								+ "</form>"
							+ "</body>" 
							+ "</html>";

		/*
		 * Test test = new Test(); test.readStringXml(xmlString);
		 */
		Map<Object, Object> map = readStringXmlOut(xmlString);
		Iterator<Object> iters = map.keySet().iterator();
		while (iters.hasNext()) {
			String key = iters.next().toString(); // 拿到键
			String val = map.get(key).toString(); // 拿到值
			System.out.println(key + "=" + val);
		}
	}