event-feed in XML format

时间:2016-04-07 10:41:00

标签: python xml rss

Tell me how you can add custom fields in the rss-tape? After all, she has a strict specification.

For example, I need to:

<?xml version="1.0" encoding="utf8"?>
<feed version="1.1">
  <events>
    <event id="93492" price="true" type="concert">
      <title><![CDATA[Kodaline]]></title>
      <age_restricted>18+</age_restricted>
      <tags>
        <tag>18+</tag>
        <tag>концерт</tag>
        <tag>рок и рок-н-ролл</tag>
      </tags>
      <gallery>
        <image href="***"/>
      </gallery>
      <text><![CDATA[]]></text>
    </event>
  <events>
</feed>

those. Roughly speaking events ribbon.

As I guess it can not in any way relate to RSS? Is there any specification for creating events tapes? Which, for example, you can sync to the google calendar.

1 个答案:

答案 0 :(得分:0)

是。真。

设置RSS规范严格格式。 这样做是为了统一新新闻界面的通知。 更完全的自由赋予XML本身,可以放置任何数据结构。

严格格式不用于事件Feed(例如RSS-feeds)。例如,微软使用 this