Java tutorial
//package com.java2s; import java.util.Map; public class Main { private static void extractValue(Map<String, String> result, String eleName, String content) { if (eleName != null && eleName.contains(":")) { String cs[] = eleName.split(":"); result.put(cs[1], content); } else { result.put(eleName, content); } } }