模式
对于每种不同的XML格式,GeoRSS阅读器返回具有相同模式的特性。下表解释了哪些XML元素映射到哪些特性属性。
当一个特性被传递给GeoRSS编写者时,它将被视为条目类型特征,除非其特征类型为饲料.这意味着GeoRSS编写器将始终将特性视为GeoRSS读者的输出。任何不能由GeoRSS读取器生成的属性都将被忽略。
如果某个特性对某些必需的属性没有值,那么GeoRSS编写器将为该属性提供一个默认值。
提要类型特征
功能属性 | 描述/源/目标 |
---|---|
标题 |
Atom: <标题> RSS: <标题> 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
TitleType |
Atom/RSS: type= " xxx "属性在Title属性的源XML元素中。 默认值为“text”。只有当Title属性被填充时,这个属性才会被填充。 |
版本 |
该属性是XML提要格式的字符串表示形式。当读取Atom提要时,它基于提要的XML名称空间,而在RSS提要中,它基于< RSS >元素的version= " xxx "属性。 这个属性被GeoRSS编写器忽略。 |
描述 |
Atom 0.3: <标语> Atom 1.0: <副标题> RSS: <描述> |
DescriptionType |
Atom/RSS: type= " xxx "属性在Description属性的源XML标记中。 默认值为“text”。只有当Description属性被填充时,这个属性才会被填充。 |
Id |
Atom: < id > 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
版权 |
版权Atom 0.3: < > Atom 1.0: <权利> 版权RSS: < > |
CopyrightType |
Atom/RSS: type= " xxx "属性在版权属性的源XML标记中。 默认值为“text”。只有在填充了Copyright属性时,才会填充此属性。 |
PublishedDate |
RSS: < >的作用 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
CloudDomain | RSS: domain= " xxx "属性在 |
CloudPath | RSS: path= " xxx "属性在 |
CloudPort | RSS: port= " xxx "属性在 |
CloudProtocol | RSS: protocol= " xxx "属性在 |
CloudRegisterProcedure | RSS: registerProcedure= " xxx "属性在 |
语言 | RSS: < >的作用 |
ManagingEditor | RSS: < managingEditor > |
网站管理员 | RSS: <站长> |
文档 | RSS: <文件> |
Ttl | RSS: < ttl > |
图像 | RSS: |
ImageURI | 如果一个特性没有值,GeoRSS编写器将为这个属性提供一个默认值。 |
ImageLink | 如果一个特性没有值,GeoRSS编写器将为这个属性提供一个默认值。 |
ImageTitle | 如果一个特性没有值,GeoRSS编写器将为这个属性提供一个默认值。 |
评级 | RSS: <评级> |
TextInputDescription | 如果一个特性没有值,GeoRSS编写器将为这个属性提供一个默认值。 |
TextInputName | 如果一个特性没有值,GeoRSS编写器将为这个属性提供一个默认值。 |
TextInputLink | 如果一个特性没有值,GeoRSS编写器将为这个属性提供一个默认值。 |
TextInputTitle | 如果一个特性没有值,GeoRSS编写器将为这个属性提供一个默认值。 |
小时 | RSS: <小时>在 |
一天 | RSS: |
LastUpdate |
Atom 0.3: <修改> Atom 1.0: < >更新 RSS: < lastBuildDate > 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
类别 {}。类别 |
Atom 1.0:术语= " xxx "属性在 RSS: <目录> 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
CategoryDomain {}。域 |
Atom 1.0: scheme= " xxx "属性在 RSS: domain= " xxx "属性在 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
CategoryLabel {}。标签 |
标签= " xxx "属性在 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
作者 |
Atom: |
AuthorEmail |
Atom: |
AuthorURI |
Atom: |
贡献者 |
Atom: |
ContributorEmail |
Atom: |
ContributorURI |
Atom: |
发电机 |
发电机Atom: < > RSS: <发电机> 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
GeneratorURI |
Atom 0.3: url= " xxx "属性在<生成器> Atom 1.0: uri= " xxx "属性在 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
GeneratorVersion |
在 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
图标 |
Atom 1.0: <图标> |
标志 |
Atom 1.0: <标识> |
LinkRelation {}的链接。关系 |
Atom: rel= " xxx " attribute inside (除非rel= " enclosure ") 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
LinkURI {}的链接。URI |
Atom: href= " xxx "属性内部(除非rel= " enclosure ") RSS: <链接> 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
LinkType {}的链接。类型 |
Atom: type= " xxx " attribute inside (除非rel= " enclosure ") 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
LinkTitle {}的链接。标题 |
Atom: title= " xxx " attribute inside (除非rel= " enclosure ") 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
FeatureType |
在GeoRSS xml名称空间中的一个元素上遇到的第一个' featuretypetag '属性。 |
的关系 |
在GeoRSS xml名称空间中的一个元素上遇到的第一个' relationshiptag '属性。 |
海拔高度 |
在GeoRSS xml名称空间中的元素上遇到的第一个' elev '属性。 |
FloorNumber |
在GeoRSS xml名称空间中的元素上遇到的第一个“floor”属性。 |
半径 |
在GeoRSS xml名称空间中的元素上遇到的第一个“radius”属性。 |
条目类型特征
功能属性 | 源 |
---|---|
标题 |
Atom: <标题> RSS: <标题> 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
TitleType |
Atom/RSS: type= " xxx "属性在Title属性的源XML标记中。 默认值为“text”。只有当Title属性被填充时,这个属性才会被填充。 |
总结 |
Atom: < >总结 |
SummaryType |
Atom/RSS: type= " xxx "属性在Summary属性的源XML标记中。 默认值为“text”。只有当Summary属性被填充时,此属性才会被填充。 |
Id |
Atom: < id > RSS: < guid > 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
IdIsPermaLink |
RSS: isPermaLink= " xxx "属性在 |
评论 | RSS: < >的评论 |
版权 |
Atom 1.0: <权利> |
CopyrightType |
Atom/RSS: type= " xxx "属性在版权属性的源XML标记中。 默认值为“text”。只有在填充了Copyright属性时,才会填充此属性。 |
SourceURI | RSS: < > |
PublishedDate |
Atom 0.3: < >发布 Atom 1.0:发表的< > RSS: < >的作用 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
LastUpdate |
Atom 0.3: <修改> Atom 1.0: < >更新 如果某个特性没有值,那么GeoRSS编写器将为该属性提供一个默认值。 |
类别 {}。类别 |
Atom 1.0:术语= " xxx "属性在 RSS: <目录> 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
CategoryDomain {}。域 |
Atom 1.0: scheme= " xxx "属性在 RSS: domain= " xxx "属性在 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
CategoryLabel {}。标签 |
标签= " xxx "属性在 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
作者 |
Atom: RSS: < >作者 |
AuthorEmail |
Atom: |
AuthorURI |
Atom: |
贡献者 |
Atom: |
ContributorEmail |
Atom: |
ContributorURI |
Atom: |
内容 |
Atom: <内容> RSS: <描述> |
ContentType |
在Content属性的源XML标记内的Atom/RSS: type= " xxx "属性。 默认值为“text”。只有当Content属性被填充时,这个属性才会被填充。 |
ContentIsRemoteURL |
Atom:如果Content属性的值来自< Content >元素中的src= " xxx "属性,则该属性将被设置为' Yes '。 |
LinkRelation {}的链接。关系 |
Atom: rel= " xxx " attribute inside (除非rel= " enclosure ") 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
LinkURI {}的链接。URI |
Atom: href= " xxx "属性内部(除非rel= " enclosure ") RSS: <链接> 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
LinkType {}的链接。类型 |
Atom: type= " xxx " attribute inside (除非rel= " enclosure ") 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
LinkTitle {}的链接。标题 |
Atom: title= " xxx " attribute inside (除非rel= " enclosure ") 非列表属性将包含与列表属性中的第一个条目相同的信息。 |
EnclosureTitle |
Atom: title= " xxx " attribute inside where rel= " enclosure " |
EnclosureURI |
where rel= " enclosure " RSS: url= " xxx "属性在 |
EnclosureType |
type= " xxx " attribute inside where rel= " enclosure " RSS: type= " xxx "属性在 |
EnclosureLength |
RSS: length= " xxx "属性在 |
FeatureType |
在GeoRSS xml名称空间中的一个元素上遇到的第一个' featuretypetag '属性。 |
的关系 |
在GeoRSS xml名称空间中的一个元素上遇到的第一个' relationshiptag '属性。 |
海拔高度 |
在GeoRSS xml名称空间中的元素上遇到的第一个' elev '属性。 |
FloorNumber |
在GeoRSS xml名称空间中的元素上遇到的第一个“floor”属性。 |
半径 |
在GeoRSS xml名称空间中的元素上遇到的第一个“radius”属性。 |