此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)
Import/Export 导入/导出 格式

RSS (.rss)

MIME type: application/rss+xml
RSS web syndication format.
Commonly used to transmit frequently updated web content to feed readers or news aggregators.
RSS is an acronym for Really Simple Syndication.
Stores names, addresses, and other contact information.
XML-based format.
Stores news headlines together with date information and web links.
Introduced in 1999 by Netscape under the name RDF Site Summary.
  • Import fully supports RSS version 2.0.1 and earlier.
  • Import["file.rss"] imports an RSS file as a notebook expression.
  • Import["file.rss"] reads an RSS file and returns its contents formatted as a notebook.
  • Import["file.rss", elem] imports the specified element from an RSS file.
  • Import["file.rss", {elem, suba, subb, ...}] imports a subelement.
  • Import["file.rss", {{elem1, elem2, ...}}] imports multiple elements.
  • The import format can be specified with Import["file", "RSS"] or Import["file", {"RSS", elem, ...}].
  • See the reference pages for full general information on Import.
"Elements"list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties and settings
  • Data representation elements:
"Notebook"gives an RSS file formatted as a notebook expression
"NotebookObject"creates a notebook and opens it in a new window
"SymbolicXML"RSS file imported as a symbolic XML expression
  • Import uses the "Notebook" element by default.
Import an example RSS file as a Cell expression:
In[1]:=
Click for copyable input
Out[1]=
Import an RSS file and format it as a notebook:
In[2]:=
Click for copyable input
Out[2]=