public static Document parseXml(String xmlStr) {
		if (StrUtil.isBlank(xmlStr)) {
			throw new IllegalArgumentException("XML content string is empty !");
		}
		xmlStr = cleanInvalid(xmlStr);
		return readXML(new InputSource(StrUtil.getReader(xmlStr)));
	}
public static Document parseXml ( String xmlStr ) { if ( StrUtil . isBlank ( xmlStr ) ) { throw new IllegalArgumentException ( "XML content string is empty !" ) ; } xmlStr = cleanInvalid ( xmlStr ) ; return readXML ( new InputSource ( StrUtil . getReader ( xmlStr ) ) ) ; }
将String类型的XML转换为XML文档

@param xmlStr XML字符串
@return XML文档