1 、 OPML 文件
OPML ( Outline Processor Markup Language )是建立在 XML 基础上的“大纲处理标记语言”,主要用于描述一份资料的结构。大部分的 RSS 阅读器都支持通过导入 OPML 文件来导入或导出订阅的源。
下面是一个 OPML 文件的样本
Xml代码
<opml version="1.0">
+
<head>
<title>JavaEye技术网站RSS频道订阅</title>
</head>
−
<body>
+
<outline title="JavaEye新闻频道" text="JavaEye新闻频道">
<outline text="JavaEye新闻" title="JavaEye新闻" type="rss" xmlUrl="http://www.javaeye.com/rss/news" htmlUrl="http://www.javaeye.com/news"/>
</outline>
−
<outline title="JavaEye论坛频道" text="JavaEye论坛频道">
<outline text="论坛精彩帖子" title="论坛精彩帖子" type="rss" xmlUrl="http://www.javaeye.com/rss/topic" htmlUrl="http://www.javaeye.com/forums"/>
<outline text="论坛最新帖子" title="论坛最新帖子" type="rss" xmlUrl="http://www.javaeye.com/rss/forum" htmlUrl="http://www.javaeye.com/forums"/>
<outline text="Java版" title="Java版" type="rss" xmlUrl="http://www.javaeye.com/rss/board/Java" htmlUrl="http://www.javaeye.com/forums/board/Java"/>
<outline text="Web版" title="Web版" type="rss" xmlUrl="http://www.javaeye.com/rss/board/web" htmlUrl="http://www.javaeye.com/forums/board/AJAX"/>
<outline text="移动编程版" title="移动编程版" type="rss" xmlUrl="http://www.javaeye.com/rss/board/mobile" htmlUrl="http://www.javaeye.com/forums/board/mobile"/>