Author: scabanovich
Date: 2010-11-24 09:20:55 -0500 (Wed, 24 Nov 2010)
New Revision: 26877
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/XMLRecognizerContext.java
Log:
https://jira.jboss.org/browse/JBIDE-7728
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/XMLRecognizerContext.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/XMLRecognizerContext.java 2010-11-24
12:06:15 UTC (rev 26876)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/XMLRecognizerContext.java 2010-11-24
14:20:55 UTC (rev 26877)
@@ -17,7 +17,7 @@
import javax.xml.parsers.DocumentBuilder;
-import org.jboss.tools.common.model.util.SafeDocumentBuilderFactory;
+import org.jboss.tools.common.xml.XMLUtilities;
import org.w3c.dom.Document;
import org.w3c.dom.DocumentType;
import org.xml.sax.EntityResolver;
@@ -90,7 +90,7 @@
return doctypes.get(docTypeString);
}
Reader xml = new StringReader(docTypeString + "<root></root>");
//$NON-NLS-1$
- DocumentBuilder db = SafeDocumentBuilderFactory.createDocumentBuilder(false);
+ DocumentBuilder db = XMLUtilities.createDocumentBuilder(false);
if (db == null)
return NULL_INFO;