XML Schema is an XML based alternative to DTD. [XML Schema是一U?span>XML文gcd定义的基本方?span>]
An XML schema describes the structure of an XML document. [每个XML Schema描述XML文档的结?span>]
The XML Schema language is also referred to as XML Schema Definition (XSD). [XML Schema也称?span>XML模式定义(XSD)]
What You Should Already Know [在学习之前你应该知道什?span>]
Before you study the XML Schema Language, you should have a basic understanding of XML and XML Namespaces. It will also help to have some basic understanding of DTD. [在你开始学?span>XML Schema语言之前Q你应该?span>XML?span>XML的命名空间有基本的了解。那样会帮助你了?span>DTDQ?span>Document Type Definition文gcd定义Q?span>].
What is an XML Schema? [XML Schema是什么?]
The purpose of an XML Schema is to define the legal building blocks of an XML document, just like a DTD. [XML Schema目标是定义合法的XML文档Q就?span>DTD那样]
An XML Schema: [M?span>XML SchemaQ?span>]
defines elements that can appear in a document [定义在文档中的元?span>]
defines attributes that can appear in a document [定义在文档中的属?span>]
defines which elements are child elements [定义哪些元素为子元素]
defines the order of child elements [定义子元素的?span>]
defines the number of child elements [定义子元素的?span>]
defines whether an element is empty or can include text [定义元素是否为空]
defines data types for elements and attributes [定义元素和属性的数据cd]
defines default and fixed values for elements and attributes [定义元素和属性的默认值和固定?span>]
XML Schemas are the Successors of DTDs [XML Schemas?span>DTD的替代?span>]
We think that very soon XML Schemas will be used in most Web applications as a replacement for DTDs. Here are some reasons: [我们认ؓ很快XML Schemas׃替代DTD而大量应用于Web应用。原因有如下几个Q?span>]
XML Schemas are extensible to future additions [XML Schemas易于未来的扩?span>]
XML Schemas are richer and more useful than DTDs [XML Schemas?span>DTD更有用处]
XML Schemas are written in XML [XML Schemas本n是XML]
XML Schemas support data types [XML Schemas支持数据cd]
XML Schemas support namespaces [XML Schemas支持命名I间]
XML Schema is a W3C Recommendation [XML Schemas?span>W3C推荐使用?span>]
XML Schema was originally proposed by Microsoft, but became an official W3C recommendation in May 2001. [XML Schemas最初由微Y提出Qƈ?span>2001q五月成?span>W3C的官Ҏ定标?span>]
The specification is now stable and has been reviewed by the W3C Membership. [其规格文档现已稳定ƈ加入?span>W3C标准?span>]
XML Schemas - Why? [Z么选用XML SchemasQ?span>]
There are a number of reasons why XML Schema is better than DTD. [XML Schemas有趣多方面优?span>DTD]
XML Schema has Support for Data Types [XML Schemas支持数据cd]
One of the greatest strengths of XML Schemas is the support for data types. [XML Schemas其中最好的斚w之一是支持数据cd]
With the support for data types: [Ҏ据类型提供的支持有:]
It is easier to describe permissible document content [易于描述文档内容是否允许]
It is easier to validate the correctness of data [易于验证数据的正?span>]
It is easier to work with data from a database [易于复合数据库操作数?span>]
It is easier to define data facets (restrictions on data) [易于定义数据U束]
It is easier to define data patterns (data formats) [易于格式化数?span>]
It is easier to convert data between different data types [易于数据在不同的数据cd中{?span>]
XML Schemas use XML Syntax [XML Schemas是用XML的语?span>]
Another great strength about XML Schemas is that they are written in XML. [另一个最大的优点?span>XML Schemas是用XML书写?span>]
Because XML Schemas are written in XML: [XML Schemas?span>XML书写的好处有Q?span>]
You don't have to learn another language [不用学习另一U新的语a]
You can use your XML editor to edit your Schema files [能在XML的编辑器中编?span>XML Schemas文g]
You can use your XML parser to parse your Schema files [能用XML解释器去解释XML Schemas文g]
You can manipulate your Schema with the XML DOM [能用XML DOM(Document Object Model,文档物g模型)操作XML Schemas文g]
You can transform your Schema with XSLT [能用XSLT来{?span>XML Schemas文g]
XML Schemas Secure Data Communication [XML Schemas数据通信更安?span>]
When data is sent from a sender to a receiver it is essential that both parts have the same "expectations" about the content. [当数据从发送方传递给接受Ҏ, XML Schemas会让昄的内容达C?span>”期望”]
With XML Schemas, the sender can describe the data in a way that the receiver will understand. [XML Schemas文g能让发送方的数据被接受Ҏ解释]
A date like this: "03-11-2004" will, in some countries, be interpreted as 3. November and in other countries as 11. March, but an XML element with a data type like this: [例如一个日期的表述” 03-11-2004”,在某些国家会被解释ؓ11?span>3?/st1:chsdate>,而在另一些国家却被解释成3?span>11?/st1:chsdate>],而相同的数据?span>XML上表q成:
<date type="date">2004-03-11</date>
ensures a mutual understanding of the content because the XML data type date requires the format YYYY-MM-DD. [׃XML数据cd定义了他的格式是YYYY-MM-DD,从而能正的表述其内容的含义]
XML Schemas are Extensible [XML Schemas是可扩展?span>]
XML Schemas are extensible, just like XML, because they are written in XML. [XML Schemas是可扩展?span>,像普通的XML一?span>,因ؓ他本w就是一?span>XML]
With an extensible Schema definition you can: [可扩展性的定义带来的好处有Q?span>]
Reuse your Schema in other Schemas [可从用你的规则与其他规则]
Create your own data types derived from standard types [从其他的标准的数据类型中创徏自定义的数据cd]
Reference multiple schemas from the same document [同一个文档可以引用多个规?span>]
Well-Formed is not Enough [良好格式qƈ不?span>]
A well-formed XML document is a document that conforms to the XML syntax rules: [一个具有良好格式的XML文档是完全符?span>XML的语法规则的Q?span>]
must begin with the XML declaration [必须?span>XML声明开?span>]
must have one unique root element [必须有且仅有一个根节点]
all start tags must match end-tags [所有标{N必须有相对的l束标签]
XML tags are case sensitive [XML的标{是区分大小写的]
all elements must be closed [所有的元素都必L闭合?span>]
all elements must be properly nested [所有元素都必须合理的嵌?span>(元素不可以交?span>)]
all attribute values must be quoted [所有的属性都必须被引?span>]
XML entities must be used for special characters [所有的XML实体都必ȝҎ的字W来?span>]
Even if documents are Well-Formed they can still contain errors, and those errors can have serious consequences. Think of this situation: you order 5 gross of laser printers, instead of 5 laser printers. With XML Schemas, most of these errors can be caught by your validating software. [即文档完全W合格式也会包含错误,而且有些错误会有严重的逻辑问题.想一惌L情况:你订购五台激光打印机是ؓ了来替代五台Ȁ光打印机.配合XML Schemas,大部分的错误都可以由你的软g校验出来?span>.]
XSD How To [XSD如何]
XML documents can have a reference to a DTD or an XML Schema. [XML文档能和一?span>DTD或者一?span>XML Schema相关]
A Simple XML Document [一个简单的XML文档]
Look at this simple XML document called "note.xml": [看看q个名ؓ"note.xml"?span>XML文档]
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
A Simple DTD [一个简单的DTD]
This is a simple DTD file called "note.dtd" that defines the elements of the XML document above ("note.xml"): [q个单的DTD"note.dtd"定义?span>"note.xml"中的元素:]
<!ELEMENT note (to, from, heading, body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
Line 1 defines the note element to have four elements: "to, from, heading, body". Line 2-5 defines the to element to be of the type "#PCDATA", the from element to be of the type "#PCDATA", and so on... [W一行定义了note元素有四个子元素: "to, from, heading, body".而第二行到第五行分别定义?strong>to?strong>from{元素ؓ"#PCDATA"]
A Simple XML Schema [一个简单的XML Schema]
This is a simple XML Schema file called "note.xsd" that defines the elements of the XML document above ("note.xml"): [q个单的XML Schema文g"note.xsd"同样定义?span>"note.xml"中的元素Q?span>]
The note element is said to be of a complex type because it contains other elements. The other elements (to, from, heading, body) are said to be simple types because they do not contain other elements. You will learn more about simple and complex types in the following chapters. [那个note元素׃包含有其他的子元素而被定义?strong>complex type(复合cd).其他包含在它里面的元?span>(to, from, heading, body)都被定义?strong>simple types(单类?span>).你将会在以后的章节里面学到更多关于复合类型和单类型的知识.]
A Reference to a DTD [DTD的引?span>]
This XML document has a reference to a DTD: [q个XML文档引用自一?span>DTD:]
<?xml version="1.0"?>
<!DOCTYPE note SYSTEM
"http://www.w3schools.com/dtd/note.dtd">
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
A Reference to an XML Schema [XML Schema的引?span>]
This XML document has a reference to an XML Schema: [q个XML文档引用自一?span>XML Schema文档:]
indicates that the elements and data types used in the schema (schema, element, complexType, sequence, string, boolean, etc.) come from the "http://www.w3.org/2001/XMLSchema" namespace. It also specifies that the elements and data types that come from the "http://www.w3.org/2001/XMLSchema" namespace should be prefixed with xs: [说明元素和数据类型的使用模式(schema, element, complexType, sequence, string, Boolean{等)来自?span>"命名I间.同时也可?strong>xs:作ؓ前缀]
This fragment: [如下片段:]
targetNamespace="http://www.w3schools.com"
indicates that the elements defined by this schema (note, to, from, heading, body.) come from the "http://www.w3schools.com" namespace. [说明元素(note, to, from, heading, body.)的用模式来自于命名I间"http://www.w3schools.com"]
This fragment: [如下片段:]
xmlns="http://www.w3schools.com"
indicates that the default namespace is "http://www.w3schools.com". [说明默认的命名空间是"http://www.w3schools.com".]
This fragment: [如下片段:]
elementFormDefault="qualified"
indicates that any elements used by the XML instance document which were declared in this schema must be namespace qualified. [说明所有全局元素的子元素被以缺省方式放到目标命名空_q同全局元素或者类型一?span>]
Referencing a Schema in an XML Document [?span>XML文g中引?span>Schema]
This XML document has a reference to an XML Schema: [如下XML文档有一?span>XML Schema的引?span>:]
specifies the default namespace declaration. This declaration tells the schema-validator that all the elements used in this XML document are declared in the "http://www.w3schools.com" namespace. [声明默认的命名空?span>.此声明告知模式校验器让所?span>XML元素都在命名I间"http://www.w3schools.com"?span>]
Once you have the XML Schema Instance namespace available: [有时你可以用?span>XML模式实例命名I间:]
you can use the schemaLocation attribute. This attribute has two values. The first value is the namespace to use. The second value is the location of the XML schema to use for that namespace: [你能用上schemaLocationq个属?span>.q个属性有两个含义.W一个含义是q个命名I间被?span>.W二个含义是定位XML schema用到的命名空?span>:]
RSS allows you to syndicate your site content RSS可以聚合你网站上的内?
RSS is a selected list of defined items on a site RSS是一站点上被选中的内Ҏ?
RSS defines an easy way to share and view headlines and content RSS是一U更便捷的方法去查看标题和内?
RSS files can be automatically updated RSS文g可以自动的更?
RSS allows personalized views for different sites RSS允许更具人性化Q个性化Q的查看不同的站?
RSS is written in XML RSS是用XML来书写的
Why Use RSS? Z么用RSSQ?/h2>
RSS was designed to show selected data. RSS 能展C选择的数据(针对性)
Without RSS, users will have to check your site daily to check for new updates. This may be too time-consuming for many users. With an RSS feed (RSS is often called a News Feed or RSS Feed) they can check your site faster using an RSS aggregator (a site or program that gathers and sorts out several RSS feeds). 没有RSS的话Q用户将必须每天C的站上看看有没更新内宏V这对于一些用h说是很浪Ҏ间的。通过一个RSS feed他们可以使用RSS阅读器更快的查看你的站是否有更新?/p>
Since RSS data is small and fast-loading, it can easily be used with services like cell phones or PDA's. 因ؓRSS数据很小而且加蝲速度很快Q它可以Ҏ的在手机或PDA服务上用?/p>
Web-rings with similar information can easily share data on their sites to make them better and more useful. Wb-rings通过怼的信息可以方便的׃n他们站点的信息?/p>
Who Should Use RSS? 哪些人应该用RSSQ?/h2>
Webmasters who seldom update their sites do not need RSS. 站长如不是经常更新站带内信息的话可以不用RSS
RSS can be useful for Web sites that are updated frequently, like: RSS对于那些l常更新的站Ҏ说是和有帮助的,像:
News sites - Lists news with title, date and descriptions 新闻?
Site changes - Lists changed pages or new pages 站点改动信息版块
Companies - Lists news and new products 公司?- 新闻 ?C?
Calendars - Lists upcoming events and important days 日历
The Future of RSS 展望RSS
RSS is going to be everywhere. RSS遍及每个角?
Thousands of sites use RSS and more people understand its usefulness every day. 数千站用着RSSq且每天有越来越多的人明白了它的有用之处?/p>
By using RSS, information on the Web becomes easier to find and web developers can spread their information more easily to special interest groups. 有了RSSQ在WEB上的信息变的Ҏ扑ֈq且WEB开发者能够容易的信息传播给兴趣组?/p>
Hopefully, future RSS versions will include additional fields that will make it even easier to categorize and share. 未来的RSS版本可能包含额外的领域来使分cd分n信息来的更容易?/p>
RSS的历?br>译QLinyupark / 2006-04-24
RSS has been released in many different versions. RSS发布q一些不同的版本
The History of RSS RSS的历?
Here is the history of RSS according to Dave Winer (key developer of most of the RSS formats): 依据Dave WinerQRSS开发的关键人物Q的描述QRSS有这L历史Q?/p>
Dec. 1997 - Dave Winer developed scriptingNews 1997q?2?Dave Winer 开发了新闻脚本
Mar. 1999 - RSS 0.90 was developed by Netscape, which supported the scriptingNews format. This was simply XML with a RDF Header 1999q三?- RSS 0.90 q景公司开?支持格式化新闻脚?
Jun. 1999 - scriptingNews 2.0b1 was developed by Dave Winer at UserLand. This included Netscape's RSS 0.90 features 新闻脚本2.0b1?1999q?月由Dave Winer开发,包含了网景RSS 0.90的特?br>
Jul. 1999 - RSS 0.91 was an attempt by Netscape to move towards a more standard format and included most features from scriptingNews 2.0b1 but they removed the RDF header 1999q??- RSS0.91 |景试图Ud更多的标准格式ƈ包含更多来自scriptingNews2.0b1的特性但是他们却删除了RDF?
Jul. 1999 - UserLand uses RSS 0.91 and gets rid of scriptingNews 1999q??- UserLand利用了没有scriptNews的RSS0.91
Netscape discontinues their RSS development |景中断了他们对RSS的开?
Jun. 2000 - Official RSS 0.91 specification release from UserLand UserLand公开了规范文?br>
Aug. 2000 - RSS 1.0 developed by a group lead by Rael Dornfest at O'Reilly. This format uses RDF and namespaces. Because of its name it is often confused as being a new version of 0.91, but this is a completely new format with no ties to RSS 0.91
Dec. 2000 - RSS 0.92 developed by Dave Winer at UserLand and includes optional elements
Sep. 2002 - RSS 2.0 is designed by Dave Winer after leaving Userland
Jul. 2003 - RSS 2.0 specification released through Harvard under a Creative Commons license
What Are The differences? 有什么区别?
Unlike the other RSS formats, RSS 1.0 was developed using the W3C RDF (Resource Description Framework) standard. 不像其他RSS的规?RSS1.0使用W3C的DRF标准开?
What RSS Version Should I Use? 我该用哪个版本的RSSQ?/h2>
RSS 0.91 and RSS 2.0 are easiest to understand. RSS 1.0 is more complex to learn and takes more time and bandwidth to process. RSS0.91和RSS2.0是最Ҏ理解的版本?.0学v来比较复杂而且需要花更多的带宽来q作?/p>
Our tutorial is based on RSS 2.0. 我们的教E是ZRSS2.0?/p>
Is There an RSS Web Standard? 有RSS WEB标准吗?
There is no official standard for RSS. But about 50 % of all RSS feeds use the RSS 0.91 format. About 25 % use the RSS 1.0 format and the last 25 % is split between the other RSS 0.9x versions and RSS 2.0. 没有正式的RSS标准。但在所有的RSS feeds中大U有50% 使用RSS 0.91规格. 25%使用RSS1.0规格q且臛_?5%使用 RSS 0.9x ?RSS 2.0之间的版本?/p>
RSS语法 译QLinyupark / 2006-04-24
The syntax rules of RSS 2.0 are very simple and very strict. RSS2.0的语法规则非常简单ƈ十分的严根{?/p>
This tutorial teaches how to create your own RSS feed and maintain it. q个教程会教你如何徏立你自己的RSS feedq维护它?/p>
An Example RSS document 一个RSS文档的例?/h2>
RSS documents use a self-describing and simple syntax. RSS文档使用了简单的自描q语法?/strong>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>W3Schools</title> <link>http://www.w3schools.com</link> <description>W3Schools Web Tutorials </description>
<item> <title>RSS Tutorial</title>
<link>http://www.w3schools.com/rss</link> <description>Check out the RSS tutorial on W3Schools.com</description> </item>
</channel> </rss>
The first line in the document - the XML declaration - defines the XML version and the character encoding used in the document. In this case the document conforms to the 1.0 specification of XML and uses the ISO-8859-1 (Latin-1/West European) character set. 文档内的W一行ؓXML声明-定义了XML的版本和文档使用的字W编码。这个例子里文档使用的是XML1.0版本,~码?ISO-8859-1.
The next line describes the RSS element of the document (like it was saying: "this is an RSS document - version 2.0"): 下面的一行描qRSS文档元素Q这个就像在?"q是一份RSS2.0版本的文?Q?/p>
<rss version="2.0">
The next line describes the <channel> element of the document: 再下面的一行描qC文档?lt;channel>元素:
<channel>
The next three lines describe three child elements of the <channel> element (<title>, <link> and <description>): 接下来的三行描述?lt;channel>的三个子元素Q?lt;title>,<link>,<description>Q?/p>
<description>W3Schools Web Tutorials</description>
Then there is an <item> element. The <item> element contains the information you would like your RSS feed to show (<title>, <link> and <description>). You can add multiple <item> elements: 然后是<item>元素,<item>元素包含了RSS展示的一些信息(<title>, <link> ?<description>Q你可以dC<item>元素Q?/p>
<item> <title>RSS Tutorial</title> <link>http://www.w3schools.com/rss</link> <description>Check out the RSS tutorial on W3Schools.com</description> </item>
Finally, the two last lines close the <channel> and <rss> elements: 最后的两行关闭<channel> ?<rss> 元素Q?/p>
</channel> </rss>
Did you understand that this was an RSS feed from W3Schools? Don't you agree that RSS is pretty self-descriptive? 你明白这是个来自W3S的RSSfeed了不Q难道你不认是个很好的RSS自我描述Q?/p>
RSS is an XML Dialect RSS 是一UXML的方a
Because RSS is XML, there are a couple of things you must remember. 因ؓRSS是XMLQ有一些事你必M?/strong>
All XML elements must have a closing tag 所有XML元素必须有关闭标{?
XML tags are case sensitive XML标签区分大小?
All XML elements must be properly nested 所有XML元素必须合理嵌套
Attribute values must always be quoted 属性值必d引号?
Comments in RSS RSS注释
The syntax for writing comments in RSS is similar to that of HTML: 书写RSS注释的语法和HTML十分怼Q?
<!-- This is a comment -->
RSS channel元素 译QLinyupark / 2006-04-24
The <channel> element is where you describe your RSS feed. <channel>元素内是描述RSS feed的地?/p>
With RSS 2.0 there are a lot of different options for the channel element. 对于channel元素来说RSS2.0有很多不同的选择Q指内部可选择的元素有很多U)
The <channel> Element <channel>元素
The RSS <channel> element is where items are displayed. It is like an RSS headline. Channel elements normally do not change very often. RSS?lt;channel>元素是项目内ҎC的地方。它像RSS的标题。一般来讲它不会频繁的改动?/p>
There are three required elements inside the <channel> element: <title>, <link>, and <description>. 有三个内部元素是必须有的:<title>, <link>, ?<description>.
The <title> element should contain a short description of your site and your RSS feed: <title>元素里应该包含你的站和你的RSS feed短的说明Q?/p>
<title>W3Schools News Update</title>
The <link> element should define the link to your site's main page: <link>元素应该定义你网站主늚铄Q?/p>
<link>http://www.w3schools.com</link>
The final required element is <description>. This element should describe your RSS feed. 最后必L的元素就?<description>,q个元素应该描述你的RSS feed.
<description>W3Schools Web Tutorials</description>
Optional Elements in <channel> <channel>内的可选元?/h2>
Element 元素
Description 描述
<category>
Defines one or more categories the channel belongs to 定义一个或多个频道分类
<cloud>
Allows notification of updates. 允许更新通告
<copyright>
Notifies about copyrighted material 提醒有关版权
<docs>
An URL to documentation on the RSS version the channel is using 频道所使用的RSS版本文档URL
<generator>
If the channel is created using an automatic generator, this is defined here 如果频道是自动生成器产生的,在q里定义
<image>
Inserts a picture to the channel. l频道加囄
<language>
Describes what language the channel uses. By using this tag it is possible for RSS aggregators to group sites based on language. 描述了频道所使用的语a?/td>
<lastBuildDate>
Defines the last date the channel was modified 定义频道最Cơ改动的旉
<managingEditor>
Defines an e-mail address for the editor of the site 定义~辑站点人员的E-mail地址
<pubDate>
Defines the last publication date for the channel 定义频带最新的发布旉
<rating>
Parental control rating of the page 面评估
<skipDays>
Defines days where it is unnecessary for RSS aggregators to update the feed
<skipHours>
Defines hours where it is unnecessary for RSS aggregators to update the feed
<textInput>
Creates a text input for the channel
<ttl>
(ttl = time to live) Defines how many minutes the channel can stay cached before refreshing 存活的有效时?/td>
<webMaster>
Defines an e-mail address for the webmaster of the site 定义站张的邮件地址
RSS item 元素 译QLinyupark / 2006-04-24
The <item> element is where you link to and describe the update on your site. <item>元素内是你网站连接和描述更新内容的地斏V?/p>
With RSS 2.0 there are a lot of different options for the item element. 在RSS 2.0 item元素里有很多不同的可选内?/p>
The <item> Element <item>元素
The RSS <item> is where updates are displayed. It is kind of like a headline for an article. <item> elements are created every time there is an update on your site that you would like displayed in your RSS feed. <item>是显CRSS更新内容的地斏V它像是文章的标题。当你的站点有更新时RSSfeed中的<item>元素׃被徏立v来?/p>
There are several optional <item> elements, but either the <title> or the <description> are required. <item>元素里有几个可选的元素,?lt;title> 或是<description>是必L的?/p>
A RSS <item> should include the <title>, <link> and <description> elements. 一个RSS?lt;item>应该包括 <title>, <link> ?<description>元素
The first element is your news item's title. This should be a very short description of your site and your RSS feed: W一个元素是目的题目。应该用十分短的描述Q?/p>
<title>W3Schools New RSS Tutorial</title>
The next element is the link to the part of your site the item is referring to: 接下来的元素目所兌的连接:
<link>http://www.w3schools.com/rss</link>
The next line is the RSS feed description. This should describe your RSS feed item. 再下面的一行就是RSS feed的描q部?q应该是描述你的RSS feed目的?/p>
<description>W3Schools RSS Tutorial</description>
Optional Elements in <item> 可选的<item>元素
Tag
Description
<author>
Defines the author of the item. 定义作?/td>
<category>
Places the item in one or more of the channel categories. cd
<comments>
An URL to a comment's page for the item. 针对目的评论页URL
<enclosure>
Describes a media object related to the item 描述一个与目有关的媒体对?/td>
<guid>
GUID = Globally Unique Identifier. Defines a unique identifier to the item.针对目定义独特的标?/td>
<pubDate>
The publication date for the item. 目发布旉
<source>
Is used to define a third party source. 转蝲地址Q源地址Q?/td>
RSS发布 译QLinyupark / 2006-04-24
Having a RSS feed is no good unless other people can see it. 光有RSS feedq是不够的,应该让别看到?/p>
Publish Your RSS Feed 发布你的RSS feed
Publishing and getting people to notice your RSS feed is as important as making one. 发布q让Z注意到的你RSS和你制作它一样重?/p>
First, put your rss.xml file on the internet. You can place it on the same server as your site. 首先Q将你的RSS.xml文g攑ֈ你的站点服务器上?/p>
Next, let people know you have a RSS feed. Register your feed with an aggregator. 然后Q让Z知道你有一个RSSfeed.到相关的目录站上注册你的RSSQ下面是一些国外知名的RSS发布站)
Syndic8: The largest RSS directory. Syndicate has over 300,000 feeds listed. Register your feed here.
Daypop: A large news oriented RSS aggregator. Over 50,000 news oriented feeds. Register your feed here.
Newsisfree: A news oriented RSS aggregator. Over 18,000 feeds. Register your feed here.
Then, place this and this with URL's to a page that explains briefly how other people can view your RSS feed. 接着Q?这两个含有q接CRSS地址的图片放C站点的页面上Qh们就可以看到你的RSS feed?
Can I Manage my RSS Feed Myself? 我可以自行管理RSS feed吗?
The best way to be sure your RSS feed includes the things you want, and works the way you want, is to manage it yourself. But this can be very time consuming, especially for pages with a lot of updates. 如你惌RSS里包括一些你惌的东西或是想按你的想法来做,最好的办法是你自己来理它,但是q将是非常烦琐的Q因为很多页有不同的东西要更新?/p>
Your other alternative is to use a third party automated RSS. q有U选择是使用W三方的RSS自动生成?/p>
Automated RSS RSS自动生成
If you don't want to update your RSS feed yourself, there are tools and services you can use to automate it. 如果你不惌己来更新RSSQ这有些工具可以Z服务?br>===== 以下是几个工L官方地址=====
One such service is MyRSSCreator (featured in "RSS for dummies"), who can offer an automated, reliable RSS service in just 10 minutes.
There are also free services such as FeedFire, who offers free creation and distribution of RSS feeds.
For users who just need an easy RSS feed for their personal website, some of the most popular blog (Web Log) managers (like Blogger and Radio) offers built in automated RSS services.
Validate 校验
You can validate your RSS feed here[校验地址]. This validator supports all RSS versions.
RSS阅读?br>译QLinyupark / 2006-04-24
A RSS reader gathers your news for you. 一个RSS阅读器可以ؓ你收集新?/p>
RSS readers are available for many different devices and OS. RSS阅读器可以在很多不同的设备和操作pȝ上运?/p>
RSS Readers [下面是国外的几款阅读器]
There are a lot of different RSS readers. Some work as web services, and some are limited to windows (or Mac, PDA or UNIX). Here are a few I have tried and liked:
NewsGator Online - An free online based RSS aggregator. NewsGator Online also includes synchronization with Outlook Edition, viewing content on TV with Media Center Edition, as well as the publication of blogs and headlines.
RssReader - A free Windows based RSS aggregator. RssReader supports RSS versions 0.9x, 1.0 and 2.0 as well as Atom 0.1, 0.2 and 0.3.
FeedDemon - A great Windows based RSS aggregator. This is very easy to use and has a very orderly interface. But this is not freeware.
blogbot - A RSS aggregator plugin for your Outlook or Internet Explorer. The lite version for Internet Explorer is free.
There are a lot of other RSS readers out there. http://www.ourpla.net/cgi-bin/pikie.cgi?RssReaders has a big list of RSS readers, you can even add your own readers to this page or comment on the existing ones.
q是细?JAXPQSun ?Java API for XML 的文章,帮助解除了有?JAXP 本质和服务目的的疑惑。本文讲解了 JAXP 的基本概念,演示 XML 语法分析Z么需?JAXPQƈ昄如何L更改 JAXP 使用的语法分析器。本文还q一步讲qC SAX ?DOM q两个流行的?JAXP 相关?Java ?XML API?/blockquote>
Java ?XML 在每一个技术领域都刉了新闻Qƈ且对于Y件开发h员来_g?1999 q和 2000 q最重要的发展。结果,Java ?XML API 的数量激增。其中两个最行?DOM ?SAX q引h大兴,?JDOM 和数据绑?API 也接t而来。只透彻理解q些技术中的一个或两个是一艰巨Q务,而正用所有这些技术就会您成Z家。但在去q_另一?API lh留下了深d象,它就?Sun ?Java API for XMLQ通常UCؓ JAXP。如果考虑?Sun 在其q_上还没有M特定?XML 的品,那么q个q展׃ؓ奇。而o人惊奇的是h们对 JAXP 了解的缺乏。多C用它的开发h员在他们所用的q个 API 的概느解上都有错误?/p>
在讲解代码之前,介绍一些基本概念很重要。严格地_JAXP ?APIQ但是将其称为抽象层更准。它不提供处?XML 的新方式Q不补充 SAX ?DOMQ也不向 Java ?XML 处理提供新功能。(如果在这点上理解有误Q则本文正好适合您!Q它只是佉K过 DOM ?SAX 处理一些困难Q务更Ҏ。如果在使用 DOM ?SAX API 旉到特定于供应商的dQ它q通过独立于供应商的方式处理这些Q务成为可能?/p>