xin
2025-09-27 0ab919187081583c07a9b7654050f6e8741628dc
oying-system/src/main/java/com/oying/modules/hwc/utils/XmlUtils.java
@@ -2,6 +2,7 @@
import com.oying.exception.BadRequestException;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import org.xml.sax.InputSource;
@@ -101,7 +102,7 @@
    /**
     * 转XML map
     */
    public static Map<String, String> toMap(byte[] xmlBytes, String charset) throws Exception {
    public static Map<String, String> toMap(byte[] xmlBytes, String charset) throws DocumentException {
        SAXReader reader = new SAXReader(false);
        InputSource source = new InputSource(new ByteArrayInputStream(xmlBytes));
        source.setEncoding(charset);