|
@@ -14,7 +14,7 @@ import org.jdom.Element;
|
|
|
import org.jdom.JDOMException;
|
|
|
import org.jdom.input.SAXBuilder;
|
|
|
|
|
|
-public class GetWxOrderno {
|
|
|
+public class GetWxOrderno {
|
|
|
|
|
|
private static final Logger log = Logger.getLogger(GetWxOrderno.class);
|
|
|
|
|
@@ -66,7 +66,7 @@ public class GetWxOrderno {
|
|
|
|
|
|
|
|
|
* 解析xml,返回第一级元素键值对。
|
|
|
- *
|
|
|
+ *
|
|
|
* @param strxml
|
|
|
* @return
|
|
|
* @throws JDOMException
|
|
@@ -80,13 +80,13 @@ public class GetWxOrderno {
|
|
|
|
|
|
Map<String, String> m = new HashMap<String, String>();
|
|
|
InputStream in = string2Inputstream(strxml);
|
|
|
-
|
|
|
SAXBuilder builder = new SAXBuilder();
|
|
|
+
|
|
|
|
|
|
- builder.setFeature("(http://apache.org/xml/features/disallow-doctype-decl", true);
|
|
|
- builder.setFeature("(http://xml.org/sax/features/external-general-entities", false);
|
|
|
- builder.setFeature("(http://xml.org/sax/features/external-parameter-entities", false);
|
|
|
- builder.setFeature("(http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
|
|
|
+ builder.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
|
|
|
+ builder.setFeature("http://xml.org/sax/features/external-general-entities", false);
|
|
|
+ builder.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
|
|
|
+ builder.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
|
|
|
|
|
|
Document doc = builder.build(in);
|
|
|
Element root = doc.getRootElement();
|
|
@@ -112,6 +112,26 @@ public class GetWxOrderno {
|
|
|
return m;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
* 获取子结点的xml
|
|
|
*
|