Author: scabanovich
Date: 2007-09-20 09:28:01 -0400 (Thu, 20 Sep 2007)
New Revision: 3734
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl/SimpleWebFileLoader.java
Log:
JBIDE-898
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl/SimpleWebFileLoader.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl/SimpleWebFileLoader.java 2007-09-20
13:27:07 UTC (rev 3733)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl/SimpleWebFileLoader.java 2007-09-20
13:28:01 UTC (rev 3734)
@@ -79,8 +79,8 @@
protected Document loadDocument(XModelObject object, String body) {
int resolution =
EntityXMLRegistration.getInstance().resolve(object.getModelEntity());
+ if(EntityXMLRegistration.isSystemId(body)) resolution =
EntityXMLRegistration.UNRESOLVED;
String[] errors =
-// XMLUtil.getXMLErrors(new StringReader(body), isCheckingDTD(),
isCheckingSchema());
XMLUtil.getXMLErrors(new StringReader(body), resolution == EntityXMLRegistration.DTD,
resolution == EntityXMLRegistration.SCHEMA);
if(errors != null && errors.length > 0) {
object.setAttributeValue("isIncorrect", "yes");
Show replies by date