Sorry, I forgot to include the rest of the patch (hack?)
so RSSPortlet will recognize their files.
lines 293 - (stuff added between **********)
Node channel = list.item( 0 );
//how get the items as a nodelist
return getItems( channel.getChildNodes() );
*****************************************************************
} else if ( root.equals( "xml" ) ) {
NodeList list = doc.getElementsByTagName( "item" );
return getItems( list );
//parse out each nodelist item and create
*****************************************************************
} else {
//don't know what to do...
return new Item[0];
}
Hope this makes some sense.
Mike
On Wed, 07 Jun 2000, Michael Sallman wrote:
> Kevin and all,
>
> Here is a patch for RSSPortlet. It was getting hung up on the RSS files
> at InternetAlchemy http://internetalchemy.org/channels/rss/* because
> they don't have a description.
>
> lines 350 - 354 ( the line with the ******* is the patch)
>
> if ( child.getNodeName().equals( "description" ) ) {
> ******** if (child.getFirstChild() != null) { *************
> description = child.getFirstChild().getNodeValue();
> }
> }
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]