[jboss-svn-commits] JBoss Common SVN: r2652 - jbossxb/trunk/src/main/java/org/jboss/xb/binding/sunday/unmarshalling.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Oct 25 00:59:51 EDT 2007
Author: scott.stark at jboss.org
Date: 2007-10-25 00:59:50 -0400 (Thu, 25 Oct 2007)
New Revision: 2652
Modified:
jbossxb/trunk/src/main/java/org/jboss/xb/binding/sunday/unmarshalling/SundayContentHandler.java
Log:
Add support for finding a schema binding for a doc without a namespace or doctype by passing in the the root element local name as the schemaLocation if no other schemaLocation was found
Modified: jbossxb/trunk/src/main/java/org/jboss/xb/binding/sunday/unmarshalling/SundayContentHandler.java
===================================================================
--- jbossxb/trunk/src/main/java/org/jboss/xb/binding/sunday/unmarshalling/SundayContentHandler.java 2007-10-24 20:24:14 UTC (rev 2651)
+++ jbossxb/trunk/src/main/java/org/jboss/xb/binding/sunday/unmarshalling/SundayContentHandler.java 2007-10-25 04:59:50 UTC (rev 2652)
@@ -296,6 +296,9 @@
{
schemaLocation = dtdSystemId;
}
+ // If there is still no schemaLocation, pass in the root local name
+ if(schemaLocation == null)
+ schemaLocation = localName;
schemaBinding = schemaResolver.resolve(namespaceURI, null, schemaLocation);
if(schemaBinding != null)
{
More information about the jboss-svn-commits
mailing list