The previous version was checked in by mistake. Going back to what we had before.
This commit is contained in:
parent
efa4512055
commit
b5bce7b51d
1 changed files with 1 additions and 2 deletions
|
@ -30,7 +30,6 @@ public class XmlUtil {
|
||||||
return domBuilder;
|
return domBuilder;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
// domBuilderFactory.setExpandEntityReferences (false);
|
|
||||||
domBuilder = domBuilderFactory.newDocumentBuilder();
|
domBuilder = domBuilderFactory.newDocumentBuilder();
|
||||||
domBuilders.put (Thread.currentThread(), domBuilder);
|
domBuilders.put (Thread.currentThread(), domBuilder);
|
||||||
return domBuilder;
|
return domBuilder;
|
||||||
|
@ -49,7 +48,7 @@ public class XmlUtil {
|
||||||
DocumentBuilder d = getDocumentBuilder();
|
DocumentBuilder d = getDocumentBuilder();
|
||||||
try {
|
try {
|
||||||
Document doc = d.parse (in);
|
Document doc = d.parse (in);
|
||||||
// doc.normalize();
|
doc.normalize();
|
||||||
return doc;
|
return doc;
|
||||||
} catch (SAXException e) {
|
} catch (SAXException e) {
|
||||||
throw new RuntimeException ("Bad xml-code: "+e.toString());
|
throw new RuntimeException ("Bad xml-code: "+e.toString());
|
||||||
|
|
Loading…
Add table
Reference in a new issue