added again the setting for saXReader

This commit is contained in:
Miriam Baglioni 2021-10-19 10:15:26 +02:00
parent 1315952702
commit c7f6cd2591
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class QueryInformationSystem {
for (String xml : communityMap) { for (String xml : communityMap) {
final Document doc; final Document doc;
final SAXReader reader = new SAXReader(); 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)); doc = reader.read(new StringReader(xml));
Element root = doc.getRootElement(); Element root = doc.getRootElement();
map.put(root.attribute("id").getValue(), root.attribute("label").getValue()); map.put(root.attribute("id").getValue(), root.attribute("label").getValue());