|
From: <bi...@us...> - 2010-02-23 00:50:21
|
Revision: 2969
http://archive-access.svn.sourceforge.net/archive-access/?rev=2969&view=rev
Author: binzino
Date: 2010-02-23 00:25:39 +0000 (Tue, 23 Feb 2010)
Log Message:
-----------
Simplified addition of empty <score/> element if there is no score.
Modified Paths:
--------------
trunk/archive-access/projects/nutchwax/archive/src/java/org/archive/nutchwax/OpenSearchSlave.java
Modified: trunk/archive-access/projects/nutchwax/archive/src/java/org/archive/nutchwax/OpenSearchSlave.java
===================================================================
--- trunk/archive-access/projects/nutchwax/archive/src/java/org/archive/nutchwax/OpenSearchSlave.java 2010-02-22 22:39:00 UTC (rev 2968)
+++ trunk/archive-access/projects/nutchwax/archive/src/java/org/archive/nutchwax/OpenSearchSlave.java 2010-02-23 00:25:39 UTC (rev 2969)
@@ -91,10 +91,7 @@
Element score = item.getChild( "score", Namespace.getNamespace( "http://www.nutch.org/opensearchrss/1.0/" ) );
if ( score == null )
{
- score = new Element( "score", Namespace.getNamespace( "http://www.nutch.org/opensearchrss/1.0/" ) );
- score.setText( "" );
-
- item.addContent( score );
+ item.addContent( new Element( "score", Namespace.getNamespace( "http://www.nutch.org/opensearchrss/1.0/" ) ) );
}
}
@@ -206,4 +203,4 @@
(new XMLOutputter()).output( doc, System.out );
}
-}
\ No newline at end of file
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|