%@ page contentType="text/html;charset=shift_jis"
import="java.net.*,java.util.*,churchillobjects.rss4j.*,churchillobjects.rss4j.parser.*" %>
関西の病院検索 99ナビ 医療関連ニュース
<%
// 指定されたRSSフィードを入力ストリームとして取得、解析
//URL objUrl=new URL("http://www.wings.msn.to/contents/rss.php");
URL objUrl=new URL("http://news.goo.ne.jp/news/rss/topics/science/medical_health/index.rdf");
RssDocument objDoc=RssParser.parseRss(
objUrl.openConnection().getInputStream());
// チャネル情報を順に取得
Enumeration objEnm=objDoc.channels();
while(objEnm.hasMoreElements()){
RssChannel objRc=(RssChannel)objEnm.nextElement();
Enumeration items=objRc.items();
%>
関西エリアの個人開業医・病院・診療所を素早く検索できる病院検索ポータル 99ナビ 医療関連ニュース

<% while(items.hasMoreElements()){
RssChannelItem item=(RssChannelItem)items.nextElement(); %>
-
<%=item.getItemTitle()%>
<%
String strDiscription = item.getItemDescription();
if((strDiscription!=null)&&(strDiscription.equals(""))){%>
- <%=item.getItemDescription()%>
<%}else{
}%>
<% } %>
<% } %>