All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tmsps.ne4Weixin.utils.XMLParser Maven / Gradle / Ivy

package com.tmsps.ne4Weixin.utils;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author zhangwei [email protected] XMLParser
 */
public class XMLParser {
	protected static Logger log = LoggerFactory.getLogger(WeixinUtil.class);

	/**
	 * @author zhangwei [email protected] 将xml文件转成map
	 */
	public static Map getXmlToMap(String xml) {
		if (StrUtil.isBlank(xml)) {
			log.error("XML PARAMETER ILLEGAL !!!!!!");
			throw new IllegalArgumentException();
		} else {
			return XmlHelper.of(xml.trim()).toMap();
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy