[MOBY-guts] biomoby commit

Paul Gordon gordonp at pub.open-bio.org
Wed Feb 9 17:39:17 UTC 2005


gordonp
Wed Feb  9 12:39:17 EST 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory pub.open-bio.org:/tmp/cvs-serv30952/org/biomoby/shared

Modified Files:
	MobyPrefixResolver.java 
Log Message:
Changed attribute namespace conditional to check for both empty string and null, as different parsers can use one or the other to represent the fact that an attribute is not bound to a namespace

moby-live/Java/src/main/org/biomoby/shared MobyPrefixResolver.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrefixResolver.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrefixResolver.java	2004/07/07 16:02:47	1.2
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrefixResolver.java	2005/02/09 17:39:17	1.3
@@ -45,7 +45,7 @@
      */
     public static String getAttr(org.w3c.dom.Element e, String attrName){
 	String value = e.getAttributeNS(MOBY_XML_NAMESPACE, attrName);
-	if(value == null){
+	if(value == null || "".equals(value)){
 	    value = e.getAttributeNS(null, attrName);
 	}
 	return value;




More information about the MOBY-guts mailing list