[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Oct 26 01:32:06 UTC 2006


gordonp
Wed Oct 25 21:32:06 EDT 2006
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv15257/src/main/org/biomoby/shared

Modified Files:
	MobyPrefixResolver.java 
Log Message:
Became more lenient with moby-s namespace for tags
moby-live/Java/src/main/org/biomoby/shared MobyPrefixResolver.java,1.6,1.7
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrefixResolver.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrefixResolver.java	2006/10/26 00:34:13	1.6
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrefixResolver.java	2006/10/26 01:32:06	1.7
@@ -51,6 +51,9 @@
     public static String getAttr(org.w3c.dom.Element e, String attrName){
 	String value = e.getAttributeNS(MOBY_XML_NAMESPACE, attrName);
 	if(value == null || "".equals(value)){
+	    value = e.getAttributeNS(MOBY_XML_NAMESPACE_INVALID, attrName);
+	}
+	if(value == null || "".equals(value)){
 	    value = e.getAttributeNS(null, attrName);
 	}
 	return value;
@@ -95,7 +98,8 @@
 	    }
 	    // Make sure it's in the MOBY namespace, or no namespace at all
 	    String uri = child.getNamespaceURI();
-	    if(uri != null && uri.length() != 0 && !uri.equals(MOBY_XML_NAMESPACE)){
+	    if(uri != null && uri.length() != 0 && !uri.equals(MOBY_XML_NAMESPACE) &&
+	       !uri.equals(MOBY_XML_NAMESPACE_INVALID)){
 		continue;
 	    }
 




More information about the MOBY-guts mailing list