forked from D-Net/dnet-hadoop
added again the setting for saXReader
This commit is contained in:
parent
1315952702
commit
c7f6cd2591
|
@ -62,7 +62,7 @@ public class QueryInformationSystem {
|
|||
for (String xml : communityMap) {
|
||||
final Document doc;
|
||||
final SAXReader reader = new SAXReader();
|
||||
// reader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
|
||||
reader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
|
||||
doc = reader.read(new StringReader(xml));
|
||||
Element root = doc.getRootElement();
|
||||
map.put(root.attribute("id").getValue(), root.attribute("label").getValue());
|
||||
|
|
Loading…
Reference in New Issue