[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Thu Aug 23 14:41:44 UTC 2007
gordonp
Thu Aug 23 10:41:43 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv27082/src/main/org/biomoby/shared/data
Modified Files:
MobyDataUtils.java
Log Message:
Added default namespace for XML payload so that strict XML parsers requiring namespace attribute from Simple tag, etc. are happy
moby-live/Java/src/main/org/biomoby/shared/data MobyDataUtils.java,1.8,1.9
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataUtils.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataUtils.java 2007/06/26 21:22:24 1.8
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataUtils.java 2007/08/23 14:41:43 1.9
@@ -29,7 +29,8 @@
throws Exception{
// May want to check character encoding before doing getBytes(), implement this later
os.write("<?xml version=\"1.0\"?>\n".getBytes());
- os.write(("<moby:MOBY xmlns:moby=\"" + MobyPrefixResolver.MOBY_XML_NAMESPACE + "\">\n").getBytes());
+ os.write(("<moby:MOBY xmlns:moby=\"" + MobyPrefixResolver.MOBY_XML_NAMESPACE + "\" " +
+ "xmlns=\"" + MobyPrefixResolver.MOBY_XML_NAMESPACE + "\" >\n").getBytes());
os.write(mci.toXML().getBytes());
os.write("\n</moby:MOBY>\n".getBytes());
return true;
@@ -50,7 +51,8 @@
throws Exception{
writer.write("<?xml version=\"1.0\"?>\n");
- writer.write(("<moby:MOBY xmlns:moby=\"" + MobyPrefixResolver.MOBY_XML_NAMESPACE + "\">\n"));
+ writer.write(("<moby:MOBY xmlns:moby=\"" + MobyPrefixResolver.MOBY_XML_NAMESPACE + "\" " +
+ "xmlns=\"" + MobyPrefixResolver.MOBY_XML_NAMESPACE + "\">\n"));
writer.write(mci.toXML());
writer.write("\n</moby:MOBY>\n");
return true;
More information about the MOBY-guts
mailing list