XML RSS


С помощью RSS можно распространять последнюю дату веб-контента с одного веб-сайта на тысячи других веб-сайтов по всему миру.

RSS позволяет быстрый просмотр новостей и обновлений.


RSS Пример документа


<channel>
  <title>w3ii Home Page</title>
  <link>http://www.w3ii.com</link>
  <description>Free web building tutorials</description>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.w3ii.com/xml/xml_rss.html</link>
    <description>New RSS tutorial on w3ii</description>
  </item>
  <item>
    <title>XML Tutorial</title>
    <link>http://www.w3ii.com/xml</link>
    <description>New XML tutorial on w3ii</description>

  </item>
</channel>

</rss>


Что такое RSS?

  • RSS расшифровывается как Really Simple Syndication
  • RSS позволяет синдикат содержание вашего сайта
  • RSS определяет простой способ совместного использования и просмотра заголовки и содержание
  • RSS файлы могут автоматически обновляться
  • RSS позволяет персонализированные представления для различных сайтов
  • RSS написано в XML

Зачем использовать RSS?

RSS был разработан, чтобы показать выбранные данные.

Без RSS, пользователи должны будут проверить ваш сайт ежедневно для новых обновлений. Это может быть слишком много времени для многих пользователей. С RSS-канал (RSS часто называют Лента новостей или RSS подача) они могут проверить ваш сайт быстрее, используя RSS-агрегатор (сайт или программу, которая собирает и сортирует RSS-каналы).

Так как данные RSS-мала и быстро загружаемый, она легко может быть использован с услугами, как сотовые телефоны или КПК.

Веб-кольца с аналогичной информацией, могут легко обмениваться данными о своих веб-сайтах, чтобы сделать их лучше и полезнее.


Кто должен использовать RSS?

Веб-мастера, которые редко обновляют свои веб-сайты не нуждаются в RSS!

RSS полезно для веб-сайтов, которые обновляются часто, как:

  • Новостные сайты — списки новостей с заголовком, датой и описаниями
  • Компании — Списки новости и новые продукты
  • Календари — списки предстоящих событий и важные дни
  • Изменения сайта — списки измененные страницы или новые страницы

Преимущества RSS

Вот некоторые преимущества использования RSS:

Choose your news
С помощью RSS вы можете в

Загрузка RSS-канала — Технологии Яндекса

202 ACCEPTEDЗапрос принят на обработку.

400 Bad Request

ENTITY_VALIDATION_ERROR
Тело запроса не прошло валидацию.
Пример ответа
{
  "": "ENTITY_VALIDATION_ERROR",
  "": "some string"
}

error_code

Код ошибки.

error_message

Сообщение об ошибке.

403 Forbidden
INVALID_USER_ID
ID пользователя, выдавшего токен, отличается от указанного в запросе. В примерах ниже {user_id} указан правильный uid владельца OAuth-токена.
Пример ответа
{
  "": "INVALID_USER_ID",
  "": 1,
  "": "Invalid user id. {user_id} should be used."
}

error_code

Код ошибки.

available_user_id

ID пользователя, от имени которого разрешен доступ.

error_message

Сообщение об ошибке.

LICENCE_NOT_ACCEPTED
Необходимо принять Пользовательское соглашение.
Пример ответа
{
  "": "LICENCE_NOT_ACCEPTED",
  "": "some string"
}

error_code

Код ошибки.

error_message

Сообщение об ошибке.

404 Not Found

HOST_NOT_VERIFIED
Не подтверждены права на управление сайтом.
Пример ответа
{
  "": "HOST_NOT_VERIFIED",
  "": "http:ya.ru:80",
  "": "some string"
}

error_code

Код ошибки.

host_id

ID запрошенного сайта.

error_message

Сообщение об ошибке.

410 Gone
UPLOAD_ADDRESS_EXPIRED
Ресурс недоступен.
Пример ответа
{
  "": "UPLOAD_ADDRESS_EXPIRED",
  "": "2016-01-01T00:00:00,000+0300",
  "": "some string"
}

error_code

Код ошибки.

valid_until

Дата и время, до которого адрес доступен для создания задачи.

error_message

Сообщение об ошибке.

413 Payload Too Large

REQUEST_ENTITY_TOO_LARGE
Размер файла превышает ограничения.
Пример ответа
{
  "": "REQUEST_ENTITY_TOO_LARGE",
  "": "some string"
}

error_code

Код ошибки.

error_message

Сообщение об ошибке.

429 Too Many Requests

TOO_MANY_REQUESTS_ERROR
Отправлено слишком много запросов.
Пример ответа
{ "": "TOO_MANY_REQUESTS_ERROR", "": 1, "": "2016-01-01T00:00:00,000+0300", "": "some string" }

error_code

Код ошибки.

daily_quota

Доступное количество запросов в сутки.

exceeded_until

Время до начала новой квоты.

error_message

Сообщение об ошибке.

Спецификация RSS 2.0 | RSS

RSS (Really Simple Syndication) — это формат обмена информацией для Web.

RSS — это диалект XML, поэтому любые RSS документы должны соответствовать стандарту XML 1.0, опубликованному на официальном сайте W3C.

На верхнем уровне RSS-документа находится элемент <rss>, который содержит обязательный атрибут version, который, в свою очередь, указывает на версию документа. Если документ соответствует данной спецификации, то атрибут version должен быть равен 2.0.

На уровень ниже от элемента <rss> находится единожды встречающийся элемент <channel>, который содержит информацию о канале (метаданные) и о его содержании.

Обязательные элементы <channel>

ЭлементОписаниеПример
titleНазвание канала. Если у вас есть web-сайт, который содержит некоторую информации о канале, то имя канала, упомянутое на сайте, должно соответствовать имени, описанному в этом элементе.Новости bikman.ru
linkURL web-сайта, соответствующего данному каналу.http://bikman.ru/
descriptionФраза или предложение, описывающее канал.Последние новости сайта bikman.ru.

Необязательные элементы <channel>

ЭлементОписаниеПример
languageЯзык канала. Список допустимых значений, которые приводит Netscape, находятся тут. Также можно пользоваться определенными W3C обозначениями.en-us
copyrightИнформация об авторских правах.Copyright 2004, Dmitry Bikman.
managingEditorE-mail адрес ответственного за содержание канала.[email protected] (Василий Пупкин)
webMasterE-mail адрес ответственного за техническую составляющую работы канала.[email protected] (Василий Пупкин)
pubDateДата публикации контента канала, соответствующая RFC 822.Sat, 07 Sep 2002 00:00:01 GMT
lastBuildDateДата и время последнего изменения контента канала, соответствующая RFC 822.Sat, 07 Sep 2002 00:00:01 GMT
categoryОдна или несколько категории, к которым принадлежит канал.<category>Newspapers</category>
generatorСтрока, описывающая программу, которая использовалась для создания канала.MightyInHouse Content System v2.3
docsURL спецификации RSS 2.0.http://blogs.law.harvard.edu/tech/rss
cloudПозволяет процессорам зарегистрироваться, используя cloud, и быть проинформированными об изменениях канала, используя легкий протокол публикации-подписки на RSS-фиды.<cloud domain=»rpc.sys.com» port=»80″ path=»/RPC2″ registerProcedure=»pingMe» protocol=»soap» />
ttlУстанавливает время жизни (time to live). Это число в минутах, которое показывает, насколько долго канал может быть кэширован без обновления из источника.<ttl>60</ttl>
imageОпределяет GIF, JPEG или PNG изображение, которое может быть ассоциировано с каналом.
ratingPICS рейтинг канала.
textInputОпределяет поле текстового ввода, которое может быть ассоциировано с каналом.
skipHoursПодсказка процессорам, сообщающая, сколько часов они могут пропустить.
skipDaysПодсказка процессорам, сообщающая, сколько дней они могут пропустить.

<image>, вложенный элемент <channel>

<image> — это необязательный вложенный элемент <channel>, который содержит в себе три обязательных и три необязательных элемента.

<url> — это URL, указывающий на GIF, JPEG или PNG изображение, которое ассоциируется с каналом.

<title> описывает изображение. Используется в качестве атрибута alt тэга <img> при формировании HTML.

<link> — это URL, указывающий на web-сайт. При формировании HTML канала, изображение является ссылкой (необходимо принять во внимание, что <title> и <link> на практике должны быть равны элементам <title> и <link> в описании канала).

Опциональные элементы <width> и <height> определяют ширину и высоту изображения в пикселях. Необязательный элемент <description> содержит текст, который при формировании HTML должен содержаться в атрибуте title HTML тэга <a>, сформированного вокруг изображения.

Максимальное значение ширины изображения — 144. Значение по умолчанию — 88. Максимальное значение высоты изображения — 400. Значение по умолчанию — 31.

<cloud>, вложенный элемент <channel>

<cloud> — это необязательный вложенный элемент <channel>, который определяет web-службу, поддерживающую интерфейс rssCloud. Данный интерфейс может быть реализован с помощью протоколов HTTP-POST, XML-RPC или SOAP 1.1.

Его роль заключается в том, чтобы дать возможность процессорам RSS быть оповещенными об изменениях, произошедших с каналом, используя легкий протокол публикации-подписки на RSS-фиды.

<cloud domain="rpc.sys.com" port="80" path="/RPC2" registerProcedure="myCloud.rssPleaseNotify" protocol="xml-rpc" />

В этом примере для запроса информации об изменениях канала нужно отправить XML-RPC сообщение на rpc.sys.com (порт 80), указав путь равным «/RPC2». Процедура, которую необходимо вызвать, называется myCloud.rssPleaseNotify.

Полное описание интерфейса rssCloud находиться здесь.

<ttl>, вложенный элемент <channel>

<ttl> — это необязательный вложенный элемент <channel>, указывающий время жизни (time to live). Это число в минутах, которое указывает, как долго канал можно кэшировать без обновления из первоисточника.

<textInput>, вложенный элемент <channel>

<textInput> — это необязательный вложенный элемент <channel>, который должен содержать 4 обязательных вложенных элемента.

<title> — Надпись на кнопке Submit текстового поля ввода.

<description> — Описание поля ввода текста.

<name> — Имя текстового поля ввода.

<link> — URL на CGI скрипт, который должен обрабатывать текст, введенный в поле ввода.

Элементы <item>

<channel> может содержать любое количество элементов <item>. Эти элементы могут содержать в себе публикации целиком, или же анонсы со ссылками на полные варианты публикаций. Все вложенные элементы являются необязательными, однако хотя бы один элемент <title> или <description> должен присутствовать.

ЭлементОписаниеПример
titleЗаголовок.Рождение RSS — это чудо!
descriptionСинопсис публикации (краткий обзор) или полный вариант публикации.Текст, который должен описывать краткое содержание публикации или же текст публикации целиком. Это личное дело авторов канала.
authorE-mail адрес автора публикации.[email protected] (Василий Пупкин)
categoryКатегория или категории публикации.Новости спорта
commentsURL страницы отзывов и комментариев данной публикации.http://bikman.ru/comments/12345
enclosureОписание медиа объекта, который прикреплен к публикации.
guidСтрока, однозначно определяющая публикацию.http://bikman.ru/2004/01/01/a.html
pubDateДата и время публикации, соответствующие RFC 822.Sun, 19 May 2002 15:21:36 GMT
sourceRSS канал которому принадлежит публикация.Цитаты дня

<source>, вложенный элемент <item>

<source> — это необязательный вложенный элемент <item>.

Его значение — это имя RSS канала, которому принадлежит публикация. Он имеет один обязательный атрибут url, в котором указывается URL XML версии источника.

<source url=»http://bikman.ru/links2.xml»>Источник публикации</source>

Роль данного элемента заключена в распространении информации об источнике публикации.

<enclosure>, вложенный элемент <item>

<enclosure> — это необязательный вложенный элемент <item>.

Данный элемент имеет три обязательных атрибута. Url указывает URL вложения, length указывает длину в байтах, type указывает стандартный MIME тип вложения.

Атрибут url должен быть HTTP URL.

<enclosure url="http://bikman.ru/music.mp3" length="12216320" type="audio/mpeg" />

<category>, вложенный элемент <item>

<category> — это необязательный вложенный элемент <item>.

Этот элемент имеет единственный необязательный атрибут domain, который указывает на систематику классификации категории.

Значение элемента — это разделенная прямым слешем («/») строка, которая описывает иерархическое положение в данной таксономии. Процессоры могут использовать эту информацию для устанавливания связей при интерпретировании категорий.

<category>Почетная Смерть</category>

<category domain="http://bikman.ru/category">НЖМД</category>

В элемент &lt;item&gt; можно включать любое количество элементов &lt;category&gt;, в том числе для разных доменов, а так же иметь различные пересечения в пределах одного домена.

<b>&lt;pubDate&gt;, вложенный элемент &lt;item&gt;</b>

&lt;pubDate&gt; — это необязательный вложенный элемент &lt;item&gt;.

Значение этого элемента — это дата публикации, соответствующая стандарту RFC 822. Если дата указывает на будущее время, то процессоры могут не отображать элемент до тех пор, пока дата не станет текущей или прошедшей.

<pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate>

<guid> — это необязательный вложенный элемент <item>.

Значение элемента <guid> — это строка, однозначно определяющая публикацию. Например, данное значение может использоваться процессорами для определения новизны публикации.

<guid>http://bikman.ru/weblogItem3207</guid>

Не существует каких-либо определенных правил формирования значения <guid>. Обеспечение уникальности этой строки — задача канала.

Если элемент <guid> имеет атрибут isPermaLink, который равен true, процессор интерпретирует элемент <guid> как URL на публикацию, которая может быть открыта в web-браузере.

<guid isPermaLink="true">http://bikman.ru/2002/09/01.php#a2</guid>

<comments>, вложенный элемент <item>

<comments> — это необязательный вложенный элемент <item>.

Данный параметр указывает URL страницы комментариев, ассоциированной с данной публикацией.

<comments>http://bikman.ru/comments?blogId=705245&itemId=271</comments>

<author> — это необязательный вложенный элемент <item>.

Данный элемент указывает e-mail адрес автора публикации. Для газет и журналов, использующих RSS, автором является тот, кто написал публикацию, описанную в элементе . Для общих блогов, авторы могут быть различными. Для личных блогов, имеет смысл пропускать данный элемент.

<author>[email protected] (Вася Пупкин)</author>

RSS накладывает ограничение на использование первых непробельных символов в элементах <link> и <url>. Данные, содержащиеся в этих элементах, должны соответствовать стандарту URI IANA (http://, https://, news://, mailto: и ftp://). Предшествующие RSS 2.0 спецификации допускали использование только http:// и ftp:// схем, однако на практике другие URI схемы использовались авторами контента и каналов, а так же поддерживались процессорами. Стоит учитывать, что обработчики могут иметь ограничения на возможные URI схемы. Авторам не следует полагаться на полную поддержку URI схем со стороны процессоров RSS.

В спецификации RSS 0.91 длина данных элементов была ограниченна 500 или 100 символами. В элементе <channel> не могло содержаться более 15 элементов <item>. Начиная с версии 0.92, все ограничения на длину и вложенность XML элементов были сняты. Обработчики и генераторы RSS могут устанавливать собственные ограничения на количество элементов <item> и ограничения строк по длине.

В RSS 2.0 ставка сделана на связывание канала с его идентификатором в некотором катологе, широко используя систему категорий и иерархий. Например, для того, чтобы связать канал с идентификатором Syndic8, достаточно включить элемент <category> в качестве вложенного элемента <channel>, с атрибутом domain равным «Syndic8», и указать значение идентификатор/а для канала Syndic8 в базе данных.

<category domain="Syndic8">1765</category>

Часто задаваемый вопрос, как связаны значения элементов <guid> и <link>. Не одно и тоже ли это? Действительно, в некоторых системах управления контентом это так. В некоторых других системах <link> — это ссылка на первоисточник. Т.к. в некоторых системах несет в себе краткое описание больших публикаций, <link> указывает на саму публикацию, а <guid> — это ссылка на краткое описание в блоге. В любом случае, рекомендуется использовать <guid>, являющийся уникальной ссылкой на первоисточник, если это возможно. Это позволяет процессорам отслеживать уникальность новых публикаций и не повторяться.

Если у вас имеются вопросы по формату RSS 2.0, задавайте их в списке рассылки RSS2-Support.

RSS основан в 1999 году, и он должен был быть прозрачным для понимания форматом, со скоромными показаниями к применению. После того, как RSS превратился в популярный формат, разработчики стремятся расширить его, используя различные модули, определенные в различных пространствах имен (согласно спецификации W3C).

RSS позволяет расширять себя новыми возможностями. Для этого достаточно соблюдать простое правило. RSS канал может содержать элементы, отличные от описанных в данной спецификации, только в том случае, если эти элементы определены в пространстве имен.

Элементы, определенные в данной спецификации, сами не являются членами какого-либо пространства имен. Так что RSS 2.0 может оставаться совместимым с предыдущими версиями в таком смысле — версии 0.91 и 0.92 так же являются корректными с точки зрения RSS 2.0 спецификации. Если бы элементы RSS 2.0 были бы членами какого-либо пространства имен, то обратная совместимость была бы нарушена.

Несомненно, RSS — это отличный формат, он крайне популярен и широко распространен. Наличие устоявшейся концепции — это то, в чем RSS нуждался длительное время. Смысл данной работы — помочь формату стать неизменным, чтобы стимулировать рост среды, формирующейся вокруг RSS, а так же расчистить путь для появления инноваций в форматах обмена информацией. Поэтому спецификация заморожена на версии 2.0.1. Возможные версии 2.0.2, 2.0.3 и т.п. ожидаются только для пояснения, но никак не для добавления новых возможностей. Последующая работа должна происходить на уровне дополнительных модулей, которые используют пространства имен, и на уровне совершенно новых форматов обмена информации.

Спецификация RSS 2.0 предложена Berkman Center for Internet & Society at Harvard Law School под лицензией Attribution/Share Alike Creative Commons license. Автором данного документа является Dave Winer, основатель UserLand Software и просто парень из Berkman Center.

что это такое, как работает и как им пользоваться

RSS – это специальный файл в формате (rss или xml), который используется для описания новостей сайтов или их анонсов со ссылкой на полную версию текста. С английского есть несколько версий перевода аббревиатуры: Really Simple Syndication – простое получение информации и Rich Site Summary – полноценная сводка сайта. Выбирайте любую.


RSS ленты сегодня одна из лучших возможностей держать руку на пульсе событий. Например, подборка последних новостей поможет быть в курсе дел вашей ниши или хобби. Не нужно «лопатить» десятки ресурсов, чтобы найти актуальную информацию, достаточно подписаться на RSS каналы и получить сортированные по категориям новости.

Данный формат отлично подходит для инфопорталов, где нет высокой вовлеченности аудитории в материал. То есть новости не комментируют, не лайкают, не делятся в соцсетях. RSS поток – это ознакомление с информацией. Что с ней делать дальше решает сам пользователь: идти на блог и как-то реагировать на статью, просто принимать данные к сведению или пропускать «мимо ушей». В 90% случаев формат RSS успешно используется порталами, блогами (в качестве анонсирования новых материалов), библиотечными ресурсами, досками объявлений.

Как работает

Для начала разберемся, что такое RSS технически. Изнутри этот файл включает в себя три блочные структуры:

  1. Метаданные – сюда входят заголовки, подзаголовки, изображения, описания, основной текст.
  2. Гиперссылки на целевой ресурс для ознакомления с полным вариантом новости.
  3. Категории статей и метаданных, объединенных по тематике публикаций.

Принцип работы: как только на целевом ресурсе/источнике появляется новая информация, скрипт создает RSS файл, который считывают онлайновые или программные агрегаторы и оповещают пользователей об изменениях.

Преимущества и недостатки

Говорить о плюсах и минусах использования необходимо в разрезе возможностей для пользователя и владельца сайта.

Преимущества для пользователя:

  • RSS ленты собирают всю информацию с подключенных источников в единый поток, который удобно быстро просматривать без лишних телодвижений.
  • RSS полностью бесплатная опция. Выгода сайтов в новых заинтересованных читателях. Если анонс новости интересен и актуален, то продолжение захотят прочитать на источнике.
  • Быстрота уведомлений. Сигнал о выходе новой публикации или новости сразу же передается пользователю. Это позволяет быть в курсе событий и вовремя реагировать на изменения.
  • Для мобильного интернета – экономия трафика. Выгоднее подключить RSS, чем открыть десяток страниц в браузере.

Плюсы для сайтов:

  • Рост трафика. Что такое RSS лента для сайта – это клики по ссылкам в новостях, переходы на ресурс и повышение вовлеченности пользователей. Соответственно продвижение в поисковой выдаче.
  • Популярность ресурса. Связка: полезный контент + RSS повышает узнаваемость сайта среди целевой аудитории.
  • Теплая ЦА. Прочитав интересный анонс новости, человек в 80% случаев перейдет на сайт, чтобы продолжить ознакомление.

Недостатки для ресурсов и пользователей:

  • Переизбыток информации – бич нашего времени. Часто пользователи подписываются на множество лент, которые как-то соответствует тематике их интересов. В итоге информация «бьет ключом», а обработать её и, тем более, как-то отреагировать не хватает времени.
  • Поисковики раньше индексируют RSS, чем сам первоисточник. Результат такой «прыти» краулеров плачевен: сайту присваивается статус малополезного ресурса со всеми вытекающими последствиями (понижение в выдаче, фильтры). Решают это проблему так: сокращают новости или статьи до формата анонса и мотивируют пользователей кликнуть по ссылке для перехода на источник-оригинал.
  • Кража контента. XML язык считается самым простым и удобным для парсинга. Трастовые ресурсы могут спокойно находить уникальный контент и выдавать его за свой. Даже наличие ссылки не спасает от воровства, а если её и вовсе нет – то доказать статус первоисточника проблематично.

Как добавить RSS

Самый простой и быстрый способ подключить RSS на сайт – это воспользоваться сервисом feedburner от Гугла.


Регистрируемся в сервисе, выбираем в настройках русский язык и под строкой «Зажигай свой фид» жмем кнопку «далее» или «Next».


Вводим адрес фида и жмем «Next»

Далее откроется окно с перечнем всех лент RSS, нужно выбрать необходимую или добавить новую и скопировать ссылку. После чего активируем опции сервиса, проставляя чекбоксы, и нажимаем «далее».

Ссылку можно вставить на своем сайте, добавить RSS на фидбарнер или другой агрегатор, чтобы при добавлении материалов на сайте изменения были видны всем пользователям.

Также можно создать файл вручную, использую кодировку XML, воспользоваться встроенными инструментами CMS. В этом случае не нужно знать язык программирования, так как системы управления контентом предоставляют уже готовые решения.

Как подписаться на RSS

Пользователь может подписаться на ленту новостей тремя способами:

  1. Найти на странице сайта иконку или ссылку на подписку RSS, кликнуть по ней и следовать инструкциям браузера.


  2. Если хотите получать сообщения на почту, то ищите на сайте форму RSS с полем для ввода e-mail. Данное действие обычно требует подтверждения подписки.

  3. Если владелец ресурса скрыл форму подписки, но оставил канал RSS включенным. Подписаться на обновления можно, введя в браузерную строку приставку /feed или /rss.xml или /?feed=rss , к основной ссылке сайта. Например, http:// www.domen.com/feed.

Программы для чтения RSS

Сегодня любые браузеры читают формат RSS без дополнительных расширений. Преимущества браузерного подхода в том, что новости можно просматривать на ПК и мобильном устройстве в любом месте. Недостаток: ограничения по количеству подключаемых источников.

Сервисы:

  • Inoreader. Читалка лент с опцией кэширования информации, то есть просматривать сохраненные новости можно без подключения к интернету. Из плюсов: статьи можно читать полностью без перехода на источник, имеется приложение для гаджетов.
  • Newsflow. Встроенная программа в Windows 10, новости размещаются по каталогам, вид сообщений настраивается под пользователя, статьи можно читать непосредственно в приложении. Количество источников не ограничено.
  • Feedly, Palabre, Digg – сервисы и приложения для чтения лент, обладающие примерно схожим функционалом.

Для тех, кто предпочитает программные решения, разработчики предлагают: Mozilla Thunderbird и Awasu – для Windows; Newsfire и NewsLife – для MacOS.

Резюме

Мы изучили, что такое RSS лента для сайта. Разобрались с её преимуществами для пользователей и владельцев ресурсов. Научились добавлять ленту и подписываться на фид. Что такое RSS? Это быстрый просмотр новостей и развитие сайта за счет улучшения поведенческих факторов.

Как сделать RSS на сайте

Вы здесь: Главная — XML — XML Основы — Как сделать RSS на сайте

Как сделать RSS на сайте

Пришло время, наконец-то, по-настоящему применить знания по XML на практике. В этой статье я расскажу, как сделать RSS-канал у себя на сайте. Безусловно, помимо небольших знаний по XML, потребуется знания по PHP (в зависимости от Вашего сайта, и MySQL тоже).

Вообще, весь смысл создания RSS-канала на сайте заключается в том, что нужно написать всего одну страницу в XML-формате с нужным кодом. Эту страницу необходимо динамически менять через PHP, добавляя туда свежие материалы из базы (либо от туда, где Вы держите контент). А вот в каком формате нужно добавлять, об этом написано чуть ниже.

Я сейчас сразу приведу пример, в каком виде надо генерировать XML-страницу с RSS-каналом Вашего сайта:

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
  <channel>
    <title>Лента сайта MyRusakov.ru</title>
    <link>http://myrusakov.ru</link>
    <description>Создание и раскрутка сайтов</description>
    <item>
      <title>Как сделать RSS на сайте</title>
      <link>http://myrusakov.ru/xml-rss.html</link>
      <description>Описание процесса создания RSS-канала на сайте</description>
    </item>
    <item>
      <title>Как закрыть сайт на реконструкцию</title>
      <link>http://myrusakov.ru/php-close-reconstruction.html</link>
      <description>Как провести закрытие сайта на реконструкцию?</description>
    </item>
  </channel>
</rss>

В принципе, структура здесь достаточно прозрачная, однако, на всякий случай, поясню. Ваша задача подправить содержимое элемента channel, в частности, title, link и description надо изменить на название Вашего сайта, его адрес и краткое описание соответственно. Это фиксированная часть, которая не меняется. А вот дальше идут элементы item.

Вот именно содержимое элементов item и необходимо генерировать через PHP. Одна статья — один элемент item. Структура та же: title, link и description, что означает: название статьи, её адрес и краткое описание.

Помимо этих 3-х обязательных элементов есть ещё целая уйма необязательных параметров, полный список которых можно посмотреть здесь: http://cyber.law.harvard.edu/rss/rss.html.

Также обратите внимание, что весь код XML-документа должен быть написан без единой ошибки, иначе RSS-агрегаторы его просто не поймут. Для проверки валидности RSS-страницы используйте сервис W3: http://validator.w3.org/feed/.

На этом всё. Далее Вам необходимо лишь раскручивать данный RSS-канал, чтобы люди на него подписывались, но это уже совсем другая история.

  • Как сделать RSS на сайте Создано 28.09.2011 10:16:21
  • Как сделать RSS на сайте Михаил Русаков
Предыдущая статья Следующая статья

Копирование материалов разрешается только с указанием автора (Михаил Русаков) и индексируемой прямой ссылкой на сайт (http://myrusakov.ru)!

Добавляйтесь ко мне в друзья ВКонтакте: http://vk.com/myrusakov.
Если Вы хотите дать оценку мне и моей работе, то напишите её в моей группе: http://vk.com/rusakovmy.

Если Вы не хотите пропустить новые материалы на сайте,
то Вы можете подписаться на обновления: Подписаться на обновления

Если у Вас остались какие-либо вопросы, либо у Вас есть желание высказаться по поводу этой статьи, то Вы можете оставить свой комментарий внизу страницы.

Порекомендуйте эту статью друзьям:

Если Вам понравился сайт, то разместите ссылку на него (у себя на сайте, на форуме, в контакте):

  1. Кнопка:
    <a href=»https://myrusakov.ru» target=»_blank»><img src=»https://myrusakov.ru/images/button.gif» alt=»Как создать свой сайт» /></a>

    Она выглядит вот так: Как создать свой сайт

  2. Текстовая ссылка:
    <a href=»https://myrusakov.ru» target=»_blank»>Как создать свой сайт</a>

    Она выглядит вот так: Как создать свой сайт

  3. BB-код ссылки для форумов (например, можете поставить её в подписи):
    [URL=»https://myrusakov.ru»]Как создать свой сайт[/URL]

Ленты новостей RSS

У Вас в браузере заблокирован JavaScript. Разрешите JavaScript для работы сайта!


Многие Web-сайты предлагают ленты новостей XML. XML-лента состоит из статей, которые можно свободно читать и отображать на своих Web-сайтах. Это могут быть ежедневные новости, комиксы, блоги, шутки, прогноз погоды и т.д. Благодаря Ajax можно получать эту информацию, не посещая все эти сайты и не покупая клиентское приложение, считывающее XML-ленты на компьютер. XML-ленты можно отфоматировать в любом стиле, что позволяет получать только ту информацию, которая действительно требуется.

Структура RSS

Наиболее популярным форматом лент является RSS (Really Simple Syndication — очень простой синдикат).

Документ RSS состоит их двух частей: канала и статей.

Элементы канала

Канал можно рассматривать как заголовок RSS-ленты. Элементы канала сообщают пользователю, откуда поступает лента, как она называется, о чем она, когда обновлялась последний раз и т.д. Основную информацию о RSS-ленте предоставляют три необходимых элемента канала:

ЭлементОписание
descriptionФраза, описывающая канал
linkURL на Web-сайт, с которым установлен канал связи
titleИмя канала, а также название службы. Должно ассоциироваться с названием сайта

RSS-лента может также содержать любое число из следующих дополнительных элементов канала:

ЭлементОписание
categoryКатегория, к которой принадлежит канал
cloudПозволяет регистрировать процессы с атритутом cloud, чтобы они уведомлялись об обновлении канала. Таким образом, реализуется облегченный протокол публикации-подписки
copyrightУведомление об авторских правах на содержимое канала
docsURL, указывающий на документацию по RSS-лентам
generatorСтрока, указывающая, какая прогорамма использовалась для генерации протокола
imageИзображение, которое можно отображать вместе с лентой
languageЯзык, на котором написан канал
lastBuildDateВремя последнего изменения содержимого
managing editorЭлектронный адрес редактора, отвечающего за содержимое
pubDateДата публикации содержимого
ratingРейтинг PICS данного канала
skipDaysИнформирует агрегаторы (программы сбора и чтения RSS-лент), в какие дни они могут не заниматься поиском обновлений
skipHoursИнформирует агрегаторы, в какие дни часы могут не заниматься поиском обновлений
textInputПоле текстового ввода, которое может отображаться
ttlВремя жизни (Time to Live — TTL), или число минут, в течение которых данные канала могут кэшироваться, не требуя обновления
webmasterАдрес электронной почты администратора, отвечающего за технические вопросы

Элементы статей

Как и газета RSS-лента может состоять из множества статей. Основными составляющими статьи являются заголовок и описание. Согласно спецификации RSS необходимым является только один из них, хотя допускается использование обоих. Заголовок (title) позволяет понять, о чем идет речь в статье, а описание (description) может представлять собой или краткий конспект статьи, или всю статью.

Кроме того, существует восемь дополнительных элементов, которые могут добавляться к статье:

ЭлементОписание
authorАдрес электронной почты автора статьи
categoryВключает статью в одну или несколько категорий
commentsURL страницы с комментариями, касающимися данной статьи
descriptionРезюме
enclosureМедиа-объект, присоединенный к статье.
Например, <enclosure url=»http://img.gismeteo.ru/images/suncl.gif» />
guidСтрока, представляющая собой уникальный идентификатор
linkURL статьи
pubDateДата опубликования статьи
sourceКанал RSS, по которому поступает статья.
Например, <source>http://informer.gismeteo.ru/rss/34731.xml</source>
titleЗаголовок статьи

Большинство RSS-лент пытается использовать максимальное число дополнительных элементов. Чем больше данных предоставлено, тем лучше можно отобразить содержимое RSS-ленты.

Примеры RSS

Новости Hardware на 3DNews
  <?xml version="1.0" encoding="windows-1251" ?> 
 <rss version="2.0">
 <channel>
  <title>3DNews: Новости Hardware</title> 
  <link>http://3dnews.ru/news/</link> 
  <description>3DNews: Новости Hardware</description> 
 <image>
  <title>3Dnews Daily Digital Digest</title> 
  <url>http://www.3dnews.ru/i/3dn.gif</url> 
  <link>http://www.3dnews.ru</link> 
  </image>
 <item>
  <title>Panasonic BL-PA100 уже на рынке</title> 
  <link>http://3dnews.ru/news/panasonic-187697/</link> 
  <description>Компания Panasonic представила Ethernet-адаптер,
  основной особенностью которого является возможность организовать
  Ethernet-сеть через обычную электропроводку. 
  В BL-PA100 ...</description> 
  <pubDate>Wed, 15 Nov 2006 13:00:00 +0300</pubDate> 
  </item>
  </channel>
  </rss>
Погода в Ростове-на-Дону
<?xml version="1.0" encoding="windows-1251" ?> 
<rss xmlns:gismeteo="http://www.gismeteo.ru" version="2.0">
<channel>
<title>GISMETEO.RU: Погода от ФОБОС и Мэп Мейкер</title> 
<link>http://www.gismeteo.ru</link> 
<description>Прогноз погоды по 2200+ городам России и Мира</description> 
<ttl>60</ttl> 
<image>
<title>GISMETEO.RU: Погода от ФОБОС и Мэп Мейкер</title> 
<width>142</width> 
<height>18</height> 
<link>http://www.gismeteo.ru</link> 
<url>http://img.gismeteo.ru/images/gismeteo2.gif</url> 
</image>
<item>
<title>Ростов-на-Дону: Утро 15 ноя, Ср</title> 
<link>http://www.gismeteo.ru/towns/34731.htm?1000000</link> 
<description>облачно, без осадков, температура +1..+3 С,
	давление 749..751 мм рт.ст., ветер Западный, 1 м/с</description> 
<category>Погода</category> 
<enclosure url="http://img.gismeteo.ru/images/suncl.gif" /> 
<source>http://informer.gismeteo.ru/rss/34731.xml</source> 
</item>
<item>
</channel>
</rss>

Итак, RSS-лента — это регулярно обновляющийся документ в формате XML, содержащий обычно информацию новостного характера. RSS-ленты используются многими сайтами для выдачи содержания новостей непосредственно на рабочий стол пользователя. Для чтения RSS используются специальные программы, например Feedreader.
Подробнее о RSS

Управление информацией или как обуздать RSS / Хабр

Что такое RSS многие из читателей знают. Как говорит Wikipedia –

семейство XML-форматов, предназначенных для описания лент новостей, анонсов статей, изменений в блогах и т. п. Информация из различных источников, представленная в формате RSS, может быть собрана, обработана и представлена пользователю в удобном для него виде специальными программами-агрегаторами.

Больше всего мне нравиться расшифровка Really Simple Syndicationочень простое приобретение информации. В этой статье я не буду вдаваться в подробности и историю RSS, а сконцентрируюсь на использование этого мощного инструмента.
Но всё же немного истории

Раньше нам приходилось «добывать» информацию в интернете различными способами:

Если мы хотели узнать погоду, то шли на сайт, находили нужную информацию или подписывались на рассылку по почте. Если нас интересовало, ответил ли кто-нибудь на комментарий – опять же приходилось постоянно заходить на сайт. Пользователь был изолирован в «информационном вакууме».

Однако с приходом RSS всё изменилось:

Сегодня пользователь является центром информационной системы, что добавляет гораздо больше возможностей управления информацией и позволяет сэкономить много времени. С другой стороны с RSS выросли и объёмы получаемой информации. Как с ними справиться – сейчас узнаем.

RSS-агрегатор (RSS-reader)

Наиболее устоявшийся способ использовать RSS – RSS-readers: Google Reader, Bloglines, NewsGator и т.д. Сегодня, наиболее распространёнными являются именно интернет-приложения, ведь они свободны от недостатков десктоп-программ. Каналы новостей (feeds, фиды) в интернет RSS-readers всегда актуальны – на каком бы устройстве вы бы их не читали (хотя тот же Snarfer может синхронизировать вашу RSS библиотеку, однако только через Bloglines). Устройством могут быть ваш рабочий и домашний компьютер, плеер, смартфон и любой девайс, который поддерживает данный формат. Выбор RSS-reader дело вкуса, а о них, как говорится, не спорят 😉

Советы начинающим:

  1. Добавляйте каналы постепенно;
  2. Не стоит читать ВСЕ новости, что успели прочитать – то успели. Всё равно, если вы подписаны на несколько источников схожей тематики, благодаря эффекту echo-chamber вы не пропустите ничего важного. Короче, не бойтесь кнопки «Прочитать всё»;
  3. Выделяйте определенное время на чтение новостей – например, 15 минут в начале каждого часа. Чтение фидов сродни наркотику;
  4. Если нет времени, а очень хочется почитать – сохраняйте заинтересовавшие вас статьи;
  5. Не забывайте добавлять тэги и папки по мере того, как растёт коллекция;
  6. Не бойтесь удалять новостные каналы;
IM и Twitter


Ни для кого не секрет, что иногда требуется получать новости быстрее всех (блоггеры, репортёры). Для этого можно настроить свой Gtalk/ICQ/MSN или Twitter аккаунты на получение RSS. Для IM сервисов можно воспользоваться:

Очень осторожно добавляйте каналы. С моими 160 каналами, я получал новости каждую секунду.


Наиболее интересные блоги и новостные ресурсы можно добавить в Twitter. Обычно на сайтах можно узнать ник человека, зарегистрированного на Twitter, подписавшись на которого, новости будут приходить сразу к вам.

Фильтруем

Со временем библиотека разрастётся настолько, что времени просто физически не будет хватать. Тут нам помогут RSS фильтры. Наиболее известные:
http://www.aiderss.com
AideRss – на основе алгоритмов, выделяет наиболее важные и обсуждаемые новости.

http://www.feedhub.com
FeedHub – учиться на основе ваших интересов, вы голосуете «за» или «против» и постепенно должны получать только те статьи, которые вам интересны.

http://www.feedhaus.com
FeedHaus – на основе своего облака тэгов получаете только релевантную информацию.

Гипер мощная система фильтрации по ключевому слову – почти как Google Alerts – только с расширенными возможностями — Filtrbox. Вам интересно кто говорит о вас, где упоминался ваш сайт или когда ваша любимая группа приедет в ваш город? Без проблем – настраиваете и наслаждаетесь.

Слушаем

Нет времени читать? Что ж, несколько сервисов решат и эту проблему. В дороге или за рулём – отлично скоротать время и оставаться на пике информированности.

Экспериментируем

А вдруг у сайта нет RSS канала? Тогда на помощь придут такие сервисы как

Настроить их достаточно просто.

Для более экзотических целей (например, вы ищите работу дизайнера и хотели бы получать обновления с 10 сайтов и ответы на ваши запросы в одном фиде) подойдёт Yahoo! Pipes и FeedInformer.

Хотите получать результаты поиска Google в RSS (может ваш сайт вышел на первое место:)? feedmysearch.com

Для фанатов


Snackr – при помощи этого приложения вы всегда будете держать руку на пульсе. Ведь новостная строка всегда на экране.
Следим

Допустим, что по роду вашей деятельности вам приходится постоянно следить за несколькими источниками. Больше всего вам подойдут такие сервисы как Netvibes, Pageflakes и т.д. На одной странице вы можете расположить несколько важных источников и проверять, скажем, через 20 минут. Сюда можно добавить фиды из ваших экспериментов.

Используя некоторые из предложенных способов (кому что нравится) можно существенно повысить производительность работы и забыть о скуке.

Image credits: lifehacker.com, google.com, snackr.net

90000 XML RSS 90001 90002 90003 With RSS it is possible to distribute up-to-date web content from one web site to thousands of other web sites around the world. 90004 90003 RSS allows fast browsing for news and updates. 90004 90002 90008 RSS Document Example 90009 90010 90003 90010 W3Schools Home Page </ title> 90010<Link> https://www.w3schools.com </ link> 90010 <Description> Free web building tutorials </ description> 90010 <Item> 90010<Title> RSS Tutorial </ title> 90010<Link> https: // www.w3schools.com/xml/xml_rss.asp </ link> 90010 <Description> New RSS tutorial on W3Schools </ description> 90010 </ Item> 90010 <Item> 90010<Title> XML Tutorial </ title> 90010<Link> https://www.w3schools.com/xml </ link> 90010 <Description> New XML tutorial on W3Schools </ description> 90010 </ Item> 90010 </ Channel> 90004 90003 </ rss> 90004 90002 90030 What is RSS? 90031 90032 90033 RSS stands for 90034 R 90035 eally 90034 S 90035 imple 90034 S 90035 yndication 90040 90033 RSS allows you to syndicate your site content 90040 90033 RSS defines an easy way to share and view headlines and content 90040 90033 RSS files can be automatically updated 90040 90033 RSS allows personalized views for different sites 90040 90033 RSS is written in XML 90040 90051 90002 90030 Why use RSS? 90031 90003 RSS was designed to show selected data.90004 90003 Without RSS, users will have to check your site daily 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 RSS feeds). 90004 90003 Since RSS data is small and fast-loading, it can easily be used with services like cell phones or PDA’s. 90004 90003 Web-rings with similar information can easily share data on their web sites to make them better and more useful.90004 90002 90002 90030 Who Should use RSS? 90031 90003 Webmasters who seldom update their web sites do not need RSS! 90004 90003 RSS is useful for web sites that are updated frequently, like: 90004 90032 90033 News sites — Lists news with title, date and descriptions 90040 90033 Companies — Lists news and new products 90040 90033 Calendars — Lists upcoming events and important days 90040 90033 Site changes — Lists changed pages or new pages 90040 90051 90002 90030 Benefits of RSS 90031 90003 Here are some benefits of using RSS: 90004 90003 90034 Choose your news 90035 90010 With RSS you can choose to view the news you want, the news that interest you and are relevant to your work.90004 90003 90034 Remove unwanted information 90035 90010 With RSS you can (finally) separate wanted information from unwanted information (spam)! 90004 90003 90034 Increase your site traffic 90035 90010 With RSS you can create your own news channel, and publish it to the Internet! 90004 90002 90030 The History of RSS 90031 90032 90033 1997 — Dave Winer at UserLand develops scriptingNews. RSS was born 90040 90033 1999 — Netscape develops RSS 0.90 (which supported scriptingNews) 90040 90033 1999 — Dave Winer develops scriptingNews 2.0b1 (which included RSS 0.90 features) 90040 90033 1999 — Netscape develops RSS 0.91 (which included most features from scriptingNews 2.0b1) 90040 90033 1999 — UserLand gets rid of scriptingNews and uses only RSS 0.91 90040 90033 1999 — Netscape stops their RSS development 90040 90033 2000 — UserLand releases the official RSS 0.91 specification 90040 90033 2000 — O’Reilly develops RSS 1.0. This format uses RDF and namespaces. 90040 90033 2000 — Dave Winer at UserLand develops RSS 0.92 90040 90033 2002 — Dave Winer develops RSS 2.0 after leaving UserLand 90040 90033 2003 — The official RSS 2.0 specification is released 90040 90051 90003 RSS 1.0 is the only version that was developed using the W3C RDF (Resource Description Framework) standard. 90004 90003 The idea behind RDF was to help create a Semantic Web. However, this does not matter too much for ordinary users, but by using web standards it will be easier for persons and applications to exchange data.90004 90002 90030 What RSS Version Should I Use? 90031 90003 RSS 0.91 and RSS 2.0 are easier to understand than RSS 1.0. Our tutorial is based on RSS 2.0. 90004 90003 The syntax rules of RSS 2.0 are very simple and very strict. 90004 90002 90030 Is RSS a Web Standard? 90031 90003 There is no official standard for RSS. 90004 90032 90033 About 50% of all RSS feeds use RSS 0.91 90040 90033 About 25% use RSS 1.0 90040 90033 The last 25% is split between RSS 0.9x versions and RSS 2.0 90040 90051 90002 90030 How RSS Works 90031 90003 RSS is used to share content between websites. 90004 90003 With RSS, you register your content with companies called aggregators. 90004 90003 So, to be a part of it: First, create an RSS document and save it with an .xml extension. Then, upload the file to your website. Next, register with an RSS aggregator. Each day the aggregator searches the registered websites for RSS documents, verifies the link, and displays information about the feed so clients can link to documents that interests them.90004 90003 90034 Tip: 90035 Read our RSS Publishing chapter to view free RSS aggregation services. 90004 90002 90030 RSS Example 90031 90003 RSS documents use a self-describing and simple syntax. 90004 90003 Here is a simple RSS document: 90004 90010 90003 <channel> 90010<Title> W3Schools Home Page </ title> 90010<Link> https://www.w3schools.com </ link> 90010 <Description> Free web building tutorials </ description> 90010 <Item> 90010<Title> RSS Tutorial </ title> 90010<Link> https: // www.w3schools.com/xml/xml_rss.asp </ link> 90010 <Description> New RSS tutorial on W3Schools </ description> 90010 </ Item> 90010 <Item> 90010<Title> XML Tutorial </ title> 90010<Link> https://www.w3schools.com/xml </ link> 90010 <Description> New XML tutorial on W3Schools </ description> 90010 </ Item> 90010 </ Channel> 90004 90003 </ rss> 90004 90003 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 UTF-8 character set. 90004 90003 The next line is the RSS declaration which identifies that this is an RSS document (in this case, RSS version 2.0). 90004 90003 The next line contains the <channel> element. This element is used to describe the RSS feed. 90004 90003 The <channel> element has three required child elements: 90004 90032 90033<title> — Defines the title of the channel (e.g. W3Schools Home Page) 90040 90033<link> — Defines the hyperlink to the channel (e.g. https://www.w3schools.com) 90040 90033 <description> — Describes the channel (e.g. Free web building tutorials) 90040 90051 90003 Each <channel> element can have one or more <item> elements. 90004 90003 Each <item> element defines an article or «story» in the RSS feed. 90004 90003 The <item> element has three required child elements: 90004 90032 90033<title> — Defines the title of the item (e.g. RSS Tutorial) 90040 90033<link> — Defines the hyperlink to the item (e.g. https://www.w3schools.com/xml/xml_rss.asp) 90040 90033 <description> — Describes the item (e.g. New RSS tutorial on W3Schools) 90040 90051 90003 Finally, the two last lines close the <channel> and <rss> elements. 90004 90002 90030 Comments in RSS 90031 90003 The syntax for writing comments in RSS is similar to that of HTML: 90004 90003 <! - This is an RSS comment -> 90004 90002 90030 RSS is Written in XML 90031 90003 Because RSS is XML, keep in mind that: 90004 90032 90033 All elements must have a closing tag 90040 90033 Elements are case sensitive 90040 90033 Elements must be properly nested 90040 90033 Attribute values ​​must always be quoted 90040 90051 90002 90030 The RSS <channel> Element 90031 90003 The RSS <channel> element describes the RSS feed.90004 90003 Look at the following RSS document: 90004 90010 90003 <channel> 90010<Title> W3Schools Home Page </ title> 90010<Link> https://www.w3schools.com </ link> 90010 <Description> Free web building tutorials </ description> 90010 <Item> 90010<Title> RSS Tutorial </ title> 90010<Link> https: //www.w3schools.com / xml / xml_rss.asp </ link> 90010 <Description> New RSS tutorial on W3Schools </ description> 90010 </ Item> 90010 </ Channel> 90004 90003 </ rss> 90004 90003 As mentioned before, the <channel> element describes the RSS feed, and has three required child elements: 90004 90032 90033<title> — Defines the title of the channel (e.g. W3Schools Home Page) 90040 90033<link> — Defines the hyperlink to the channel (e.g. https://www.w3schools.com) 90040 90033 <description> — Describes the channel (e.g. Free web building tutorials) 90040 90051 90003 The <channel> element usually contains one or more <item> elements. Each <item> element defines an article or «story» in the RSS feed. 90004 90003 Furthermore, there are several optional child elements of <channel>. We will explain the most important ones below. 90004 90002 90030 The <category> Element 90031 90003 The <category> child element is used to specify a category for your feed.90004 90003 The <category> element makes it possible for RSS aggregators to group sites based on category. 90004 90003 The category for the RSS document above could be: 90004 90003 <Category> Web development </ category> 90004 90002 90030 The <copyright> Element 90031 90003 The <copyright> child element notifies about copyrighted material. 90004 90003 The copyright for the RSS document above could be: 90004 90003 <Copyright> 2006 Refsnes Data as.All rights reserved. </ Copyright> 90004 90002 90030 The <image> Element 90031 90003 The <image> child element allows an image to be displayed when aggregators present a feed. 90004 90003 The <image> element has three required child elements: 90004 90032 90033 <url> — Defines the URL to the image 90040 90033<title> — Defines the text to display if the image could not be shown 90040 90033<link> — Defines the hyperlink to the website that offers the channel 90040 90051 90003 The image for the RSS document above could be: 90004 90003 <Image> 90010 <Url> https: // www.w3schools.com/images/logo.gif </ url> 90010<Title> W3Schools.com </ title> 90010<Link> https://www.w3schools.com </ link> 90010 </ Image> 90004 90002 90030 The <language> Element 90031 90003 The <language> child element is used to specify the language used to write your document. 90004 90003 The <language> element makes it possible for RSS aggregators to group sites based on language. 90004 90003 The language for the RSS document above could be: 90004 90003 <Language> en-us </ language> 90004 90002 90030 The <item> Element 90031 90003 Each <item> element defines an article or «story» in an RSS feed.90004 90003 Look at the following RSS document: 90004 90010 90003 <channel> 90010<Title> W3Schools Home Page </ title> 90010<Link> https://www.w3schools.com </ link> 90010 <Description> Free web building tutorials </ description> 90010 <Item> 90010<Title> RSS Tutorial </ title> 90010<Link> https: //www.w3schools.com / xml / xml_rss.asp </ link> 90010 <Description> New RSS tutorial on W3Schools </ description> 90010 </ Item> 90010 </ Channel> 90004 90003 </ rss> 90004 90003 As mentioned before, each <item> element defines an article or «story» in the RSS feed. 90004 90003 The <item> element has three required child elements: 90004 90032 90033<title> — Defines the title of the item (e.g. RSS Tutorial) 90040 90033<link> — Defines the hyperlink to the item (e.g. https://www.w3schools.com/xml/xml_rss.asp) 90040 90033 <description> — Describes the item (e.g. New RSS tutorial on W3Schools) 90040 90051 90003 Furthermore, there are several optional child elements of <item>. We will explain the most important ones below. 90004 90002 90030 The <author> Element 90031 90003 The <author> child element is used to specify the e-mail address of the author of an item. 90004 90003 90034 Note: 90035 To prevent spam e-mails, some developers do not include the <author> element.90004 90003 The author of the item in the RSS document above could be: 90004 90003 <Author> hege@refsnesdata.no </ author> 90004 90002 90030 The <comments> Element 90031 90003 The <comments> child element allows an item to link to comments about that item. 90004 90003 A comment of the item in the RSS document above could be: 90004 90003 <Comments> https://www.w3schools.com/comments </ comments> 90004 90002 90030 The <enclosure> Element 90031 90003 The <enclosure> child element allows a media-file to be included with an item.90004 90003 The <enclosure> element has three required attributes: 90004 90032 90033 url — Defines the URL to the media file 90040 90033 length — Defines the length (in bytes) of the media file 90040 90033 type — Defines the type of media file 90040 90051 90003 A media-file included in the item in the RSS document above could be: 90004 90003 <Enclosure url = "https://www.w3schools.com/xml/rss.mp3" 90010 length = "5000" type = "audio / mpeg" /> 90004 90002 90030 Get Your RSS Feed Up On The Web 90031 90003 Having an RSS document is not useful if other people can not reach it.90004 90003 Now it’s time to get your RSS file up on the web. Here are the steps: 90004 90003 1. Name your RSS file. Notice that the file must have an .xml extension. 90004 90003 2. Validate your RSS file (a good validator can be found at http://www.feedvalidator.org). 90004 90003 3. Upload the RSS file to your web directory on your web server. 90004 90003 4. Copy the little orange or button to your web directory. 90004 90003 5. Put the little orange «RSS» or «XML» button on the page where you will offer RSS to the world (e.g. on your home page). Then add a link to the button that links to the RSS file. The code will look something like this: 90010 <a href="https://www.w3schools.com/xml/myfirstrss.xml"> 90010 <noscript><img class="lazy lazy-hidden" src = "https://www.w3schools.com/xml/pic_rss.gif"></noscript><img class="lazyload lazy lazy-hidden" src = "https://www.w3schools.com/xml/pic_rss.gif"><noscript><Img src = "https://www.w3schools.com/xml/pic_rss.gif"></noscript> 90010 </a>. 90004 90003 6. Submit your RSS feed to the RSS Feed Directories (you can Google or Yahoo for «RSS Feed Directories»). Note! The URL to your feed is not your home page, it is the URL to your feed, like «Https: // www.w3schools.com/xml/myfirstrss.xml «. Here is a free RSS aggregation service: 90004 90003 7. Register your feed with the major search engines: 90004 90003 8. Update your feed — After registering your RSS feed, you must make sure that you update your content frequently and that your RSS feed is constantly available. 90004 90002 90030 Can I Manage my RSS Feed Myself? 90031 90003 The best way to ensure your RSS feed works the way you want, is to manage it yourself. 90004 90003 However, this can be very time consuming, especially for pages with lot of updates.90004 90003 An alternative is to use a third-party automated RSS. 90004 90002 90030 Automated RSS 90031 90003 For users who only need an RSS feed for their personal website, some of the most popular blog (Web Log) managers that offer built-in RSS services are: 90004 90002 90030 RSS Readers 90031 90003 An RSS Reader is used to read RSS Feeds! 90004 90003 RSS readers are available for many different devices and OS. 90004 90003 There are a lot of different RSS readers.Some work as web services, and some are limited to windows (or Mac, PDA or UNIX): 90004 90032 90033 QuiteRSS — FREE! QuiteRSS is an open-source, cross-platform RSS / Atom news reader. It is versatile, and has a full set of options. QuietRSS has a rich set of social sharing options (Email / Twitter / Facebook /…/ Pocket / Etc). QuietRSS is fast starting, and navigation is quick 90040 90033 FeedReader — FREE! Simple, straightforward feed reader that easily handles large number of feeds.Has the essential options (not a lot of confusing ones). Does not require Java. Import or export OPML files. Option to open links in an external browser 90040 90033 RssReader — FREE! Windows-based RSS reader. Supports RSS versions 0.9x, 1.0 and 2.0 and Atom 0.1, 0.2 and 0.3 90040 90033 blogbotrss — FREE! An RSS reader plug-in for Internet Explorer and Microsoft Outlook 90040 90051 90003 90034 Tip: 90035 Most browsers have a built-in RSS Reader. If you go to a web site that offers RSS feeds, you will see an RSS icon in the address bar, or toolbar.Click on the icon to view a list of the different feeds. Choose the feed you want to read. 90004 90002 90030 I have an RSS Reader. Now what? 90031 90003 Click on the little or button next to the RSS feed you want to read. Copy The URL you get in the browser window and paste it in your RSS reader. 90004 90002 90030 RSS Examples 90031 90003 These examples demonstrate RSS using our RSS reader to view the results. 90004 90003 90034 RSS <channel> Element 90035 90004 90003 Setting the required channel elements (<title>,<link>, and <description>) 90010 Specify a category for the RSS 90010 Specify the program used to generate the RSS 90010 Add an image to the RSS 90010 Specify the language of the RSS 90010 Add an text input field to the RSS 90010 Specify days that the RSS should not be updated 90004 90002 90003 90034 RSS <item> element 90035 90004 90003 Setting the required item elements (<title>,<link>, and <description>) 90010 Add a link to comments about the RSS item 90010 Add a media file to the RSS item 90010 Specify a unique identifier for the item 90010 Specify the publication date for the RSS item 90010 Specify a third-party source for the RSS item 90004 90002 90002 90030 RSS <channel> Element 90031 90003 The links in the «Element» column point to more information about each specific element.90004 90514 90515 90516 Element 90517 90516 Description 90517 90520 90515 90522 <category> 90523 90522 Optional. Defines one or more categories for the feed 90523 90520 90515 90522 <cloud> 90523 90522 Optional. Register processes to be notified immediately of updates of the feed 90523 90520 90515 90522 <copyright> 90523 90522 Optional. Notifies about copyrighted material 90523 90520 90515 90522 <Description> 90523 90522 Required.Describes the channel 90523 90520 90515 90522 <docs> 90523 90522 Optional. Specifies a URL to the documentation of the format used in the feed 90523 90520 90515 90522 <generator> 90523 90522 Optional. Specifies the program used to generate the feed 90523 90520 90515 90522 <image> 90523 90522 Optional. Allows an image to be displayed when aggregators present a feed 90523 90520 90515 90522 <language> 90523 90522 Optional.Specifies the language the feed is written in 90523 90520 90515 90522 <lastBuildDate> 90523 90522 Optional. Defines the last-modified date of the content of the feed 90523 90520 90515 90522<link> 90523 90522 Required. Defines the hyperlink to the channel 90523 90520 90515 90522 <managingEditor> 90523 90522 Optional. Defines the e-mail address to the editor of the content of the feed 90523 90520 90515 90522 <pubDate> 90523 90522 Optional.Defines the last publication date for the content of the feed 90523 90520 90515 90522 <rating> 90523 90522 Optional. The PICS rating of the feed 90523 90520 90515 90522 <skipDays> 90523 90522 Optional. Specifies the days where aggregators should skip updating the feed 90523 90520 90515 90522 <skipHours> 90523 90522 Optional. Specifies the hours where aggregators should skip updating the feed 90523 90520 90515 90522 <textInput> 90523 90522 Optional.Specifies a text input field that should be displayed with the feed 90523 90520 90515 90522<title> 90523 90522 Required. Defines the title of the channel 90523 90520 90515 90522 <ttl> 90523 90522 Optional. Specifies the number of minutes the feed can stay cached before refreshing it from the source 90523 90520 90515 90522 <webMaster> 90523 90522 Optional. Defines the e-mail address to the webmaster of the feed 90523 90520 90635 90030 RSS <item> Element 90031 90514 90515 90516 Element 90517 90516 Description 90517 90520 90515 90522 <author> 90523 90522 Optional.Specifies the e-mail address to the author of the item 90523 90520 90515 90522 <category> 90523 90522 Optional. Defines one or more categories the item belongs to 90523 90520 90515 90522 <comments> 90523 90522 Optional. Allows an item to link to comments about that item 90523 90520 90515 90522 <description> 90523 90522 Required. Describes the item 90523 90520 90515 90522 <enclosure> 90523 90522 Optional.Allows a media file to be included with the item 90523 90520 90515 90522 <guid> 90523 90522 Optional. Defines a unique identifier for the item 90523 90520 90515 90522<link> 90523 90522 Required. Defines the hyperlink to the item 90523 90520 90515 90522 <pubDate> 90523 90522 Optional. Defines the last-publication date for the item 90523 90520 90515 90522 <source> 90523 90522 Optional.Specifies a third-party source for the item 90523 90520 90515 90522<title> 90523 90522 Required. Defines the title of the item 90523 90520 90635 90010 .90000 building and using a feed, step by step. 90001 90002 90003 Building and Using an RSS Feed 90004 by Denis Sureau 90005 Summary 90006 90007 What is RSS? 90008 90002 It is a format to share data, defined in the 1.0 version of XML. You can deliver information in this format et one can get this information, and information from other various sources, in this format.Information provided by a website in an XML file is called an RSS feed. 90010 Recent browsers can read directly RSS files, but a special 90011 RSS reader 90012 or 90011 aggregator 90012 may be used too. 90005 90007 History 90008 90002 Created by Netscape in 1999. The first version is 0.90. Followed by the 0.91 version that has been improved by the Userland company in 2000. 90010 In 2000 the version 1.0 based on RDF was created by O’Reilly and further maintained by the RSS-DEV group, and named 90011 RDF Site Summary 90012.90010 RSS 2.0 was defined by Dave Winer (previously worker at Userland) at Harvard University in 2002. 90010 This page is based on the 90011 Really Simple Syndication 90012, 2.01 specification from Harvard. 90005 90007 Why use RSS? 90008 90002 To get information or news provided by websites in a format computers can process. To display it on a website or to read it yourself. 90010 And for the provider of the content, this allows it to send news about its site.90005 90007 RSS, how it works? 90008 90002 The RSS system to publish articles and news over the web is very simple: 90005 90036 90037 There are firstly some web pages, one want to be displayed by other websites. 90010 This set of pages is the RSS feed. 90039 90037 An XML file that defines the RSS feed. This file holds URL, title and summary of each page to display. 90039 90037 A person which want to read the feed on its computer.He (she) uses an RSS reader or its browser and just adds the feed with the proper command of its software. 90039 90037 Or another website that wants to display the feed. It has to load the RSS file from the provider, to extract URL of pages, and display titles and summaries. This may be performed by a PHP script. 90039 90037 When someone visits the website of the receiver, the script is launched, it recalls the RSS file from the provider’s website and displays a list of news from extracted data.90039 90037 By a click on a line of the list, visitors display a page from the provider. 90039 90050 90007 Structure of an RSS document 90008 90002 It is an XML file and the global container is the «RSS» tag for the 2.0 format. 90010 The file holds one channel at least, this is the website that provides the information. 90010 The channel provides some articles or data. These are web pages from the same site, or from other sites.90005 90007 How to use RSS? 90008 90003 1 — Using RSS on a desktop 90004 90002 RSS feeds are displayed by Internet Explorer 7 and Firefox 2. An RSS reader (Or aggregator) may also be installed on the operating system (Windows, Linux, Mac OS, etc …). See in resources. There is one that is built with XUL. 90010 Accessing the content depends upon the reader. This may be accomplished just by a click on an «add» button to get the URL of the RSS feed, and let it added to a list of feeds.90010 90005 90003 2 — Using a feed on a website 90004 90002 The RSS feed is displayed as a list of titles (and optionally summaries). A click on a title displays the new. Titles are updated automatically. A script in PHP or other language, builds the list each time the page is displayed by loading the RSS file and extracting the data from it. Some links to such tools are provided in resources. 90005 90007 How to publish news in an RSS feed? 90008 90002 There are several means to generate RSS feeds.90005 90073 90037 Using the RSS library of PHP. A PHP script will build the XML file from titles and descriptions of pages from the content of a page. 90010 90039 90037 Use a specialized tool to extract the data from a page. 90039 90079 To give access to the XML file, a link is displayed: 90080 or 90081 90082 <a type="application/rss+xml" href="https://ww.xul.fr/rss.xml"> RSS feed for this site </a> 90083 90002 Feeds in Atom format use the «application / atom + xml» value instead.90010 Replace xul.fr by the domain name of your site. 90010 90005 90073 90037 90011 Feed. 90012 It is a set of «item» tags, a set of infos or news. 90011 90012 90039 90037 90011 RDF 90012. See at the RDF page on this site. 90039 90037 90011 Syndicated 90012. Published through an RSS feed. 90039 90037 90011 Syndication 90012. Publishing data by RSS feeds. 90039 90079 90011 rss 90012.The global container. 90010 90011 channel 90012. A distributing channel. It has several descriptive tags and holds one or several items. 90082 <rss version = "2.0"> <Channel> … </ Channel> </ Rss> 90083 90003 Required tags for the channel 90004 90073 90037 90011 title 90012. The title of the channel. Should contains the name. 90039 90037 90011 link. 90012 URL of the website that provides this channel. 90039 90037 90011 description 90012.Summary of what the provider is. 90039 90037 one 90011 item 90012 tag at least, for the content. 90039 90079 90082 <rss version = "2.0"> <Channel><Title> XUL </ title><Link> https://www.xul.fr </ link> <Description> </ description> <Item> … </ Item> </ Channel> </ Rss> 90083 90003 Optional tags for the channel 90004 90073 90037 90011 language 90012.The human language used for the text. 90039 90037 90011 docs 90012. Where to find the doc for the format of the file, may be Harvard. 90039 90037 90011 webMaster 90012. E-mail. 90039 90037 90011 pubDate 90012. Publishing date. 90039 90037 etc. See in the specification for more. 90039 90079 90003 Items of the channel 90004 90002 Each 90011 item 90012 tag must hold these tags: 90005 90073 90037 90011 title 90012. Title of the article.90039 90037 90011 link 90012. The URL of the page. 90039 90037 90011 description 90012. Summary of the article. 90039 90079 90082 <item><Title> XUL news </ title><Link> https://www.xul.fr/index.php </ link> <Description> … some text … </ description> </ Item> 90083 90003 And some optional info for this article 90004 90073 90037 90011 pubDate 90012. Publishing date. 90039 90037 90011 guid 90012.A string of character that is unique to designate this item. 90039 90037 90011 category 90012. The category of the article. 90039 90037 etc. 90039 90079 90007 Building its personal RSS feed, step by step 90008 90002 At start, this is just a simple text file, created with any text editor. But an XML editor is more convenient. (See at the «software» page). The name may be, for example: «90011 feed.xml 90012». 90010 The overall structure is as that: 90005 90082 <? Xml version = "1.0 "?> <Rss version = "2.0"> <Channel> </ Channel> 90083 90003 1) Define the source, by the channel tag 90004 90002 The channel will be the same for all your RSS feeds. These tags are required: 90010 — 90011 title 90012: the title of your website, may be the one in the title tag of the home page. 90010 — 90011 link 90012: the URL of your website: example: https://www.xul.fr 90010 — 90011 description 90012: description of your website, about 200 characters, this may be the text assigned to the content attribute of the description tag, in the head section of the home page.90010 90005 90082 <channel><Title> XUL and XML </ title><Link> https://www.xul.fr/en/ </ link> <Description> XML graphical interface etc … </ description> </ Channel> 90083 90003 2) Add an image 90004 90002 This is optional. Design a small image (88×31 for example) in a common format (Gif, jpg, png) and put in into the same directory that the RSS file. 90010 The «image» tag is a sub-element of the channel tag 90010 — 90011 url 90012 is the address of the image itself.90010 — 90011 link 90012 is the address of the page displayed when one clicks on the image. 90010 90005 90082 <channel><Title> </ title><Link> </ link> <Image> <Url> https://www.xul.fr/xul.gif </ url><Link> https://www.xul.fr/en/index.php </ link> </ Image> </ Channel> 90083 90003 3) Add a new 90004 90002 Now, we will add a web page to display an information.This is an «item» tag, a sub-element of channel, and this components are required: 90010 — 90011 title 90012: the title of the article. 90010 — 90011 link 90012: the URL of the page. 90010 — 90011 description 90012: a summary of the article, about 200 characters. 90010 90005 90082 <item><Title> News of today </ title><Link> https://www.xul.fr/en-xml-rss.html </ link> <Description> All you need to know about RSS </ description> </ Item> 90083 90003 4) Add more items 90004 More items may be added to this channel.90010 90003 5) Upload the file 90004 90002 Put the 90011 feed.xml 90012 file into your website, among other web pages. 90005 90003 6) Validate the file 90004 90002 You may use this online RSS feed validator. 90005 90003 7) Make it available 90004 90002 This is accomplished by adding an RSS button on the home page. A click on the button should display the XML file you have created. 90081 90005 90082 <a href="https://www.xul.fr/rss.xml"> <noscript><img class="lazy lazy-hidden" src = "rss.gif "></noscript><img class="lazyload lazy lazy-hidden" src = "rss.gif "><noscript><Img src = "rss.gif "></noscript> </a> 90083 90002 If the image is not displayed, use a complete URL, as https://www.xul.fr/rss.gif, for example. 90005 90003 8) Updating the feed 90004 90002 To publish further articles, you have just to add items, and remove older ones to keep the number of articles constant. 90005 90007 Example: the complete file 90008 90082 <? Xml version = "1.0"?> <Rss version = "2.0"> <Channel><Title> Ajax and XUL </ title><Link> https: // www.xul.fr/en / </ link> <Description> XML graphical interface etc … </ description> <Image> <Url> https://www.xul.fr/xul-icon.gif </ url><Link> https://www.xul.fr/en/index.php </ link> </ Image> <Item><Title> News of today </ title><Link> https://www.xul.fr/en-xml-rss.html </ link> <Description> All you need to know about RSS </ description> </ Item> <Item><Title> News of tomorrows </ title><Link> https: // www.xul.fr/en-xml-rdf.html </ link> <Description> And now, all about RDF </ description> </ Item> </ Channel> </ Rss> 90083 90002 You can download the example and use it as a template, by replacing of course, xul.fr, by the name of your website. 90005 90007 How browsers know there is an RSS feed on a website 90008 90002 You have created an RSS feed and it is now stored at root of your website. You must let browsers knowing the existence of this file and its location, when they enter and display the home page (or any other page if you want).Firefox will display the feed icon into the URL field, Internet Explorer on the bar of commands. 90010 To activate them, insert the following line into the source code of the page, anywhere inside the<head> </ head> section: 90005 90082<link rel = "alternate" type = "application / rss + xml" href = "https://www.xul.fr/rss.xml" title = "Your title"> 90083 90002 Replace the URL by your domain name with the path and filename of your RSS feed.90010 And if the file is in the atom format, replace rss + xml by atom + xml. 90005 90003 Translations 90004 90003 Specification and documents 90004 90003 Tools to generate and display RSS feeds 90004 90073 90037 Feed Validator. Enter the URL of your file to check the feed. 90039 90037 Ara Editor. Online RSS generator and editor, written in PHP. 90039 90037 RSS Reader. PHP function to display an RSS feed on a Web page, from a local or remote file.90039 90079 90002 Forum 90005 90003 How can I set up to receive RSS for jobs from various sites? 90004 90002 Fri, 01 Aug 2008 10:52:32 90005 90002 Hi, I just discovered RSS feeds. How can I set up to receive RSS feeds from various sites? Is there a site I can go to for instruction? I’m specifically interested in job updates that companies post on their sites. Thanks. 90005 90002 Mon, 04 Aug 2008 15:43:05 90005 90002 Hello, If you goal is just to be informed about news or jobs, you should use an aggregator that is connected to the RSS feed you choose, and that is updated automatically.A such tool is listed above. You can get much tools by a google search: rss + aggregator Once the software downloaded you have to add all the feeds you want, and you can also visit sites and click on the RSS button (radio) in the URL bar to display the feed. You are then prompted to subscribe to the feed. 90005 © 2006-2017 Denis Sureau & Xul.fr .90000 RSS 2.0 specification 90001 90002 Contents 90003 90002 What is RSS? 90003 RSS is a Web content syndication format. 90006 Its name is an acronym for 90007 90008 R 90009 eally 90008 S 90009 imple 90008 S 90009 yndication. 90014 90015 90006 RSS is dialect of XML. All RSS files must conform to the XML 1.0 specification, as published on the World Wide Web Consortium (W3C) website. 90015 90006 At the top level, a RSS document is a <rss> element, with a mandatory attribute called version, that specifies the version of RSS that the document conforms to.If it conforms to this specification, the version attribute must be 2.0. 90015 90006 Subordinate to the <rss> element is a single <channel> element, which contains information about the channel (metadata) and its contents. 90015 90002 Sample files 90003 Here are sample files for: RSS 0.91, 0.92 and 2.0. 90006 Note that the sample files may point to documents and services that no longer exist. The 0.91 sample was created when the 0.91 docs were written. Maintaining a trail of samples seems like a good idea.90015 90002 About this document 90003 This document represents the status of RSS as of the Fall of 2002 version 2.0.1. 90006 It incorporates all changes and additions, starting with the basic spec for RSS 0.91 (June 2000) and includes new features introduced in RSS 0.92 (December 2000) and RSS 0.94 (August 2002). 90015 90006 Change notes are here. 90015 90006 First we document the required and optional sub-elements of <channel>; and then document the sub-elements of <item>. The final sections answer frequently asked questions, and provide a roadmap for future evolution, and guidelines for extending RSS.90015 90002 Required channel elements 90003 Here’s a list of the required channel elements, each with a brief description, an example, and where available, a pointer to a more complete description. 90036 90037 90038 Element 90039 90038 Description 90039 90038 Example 90039 90044 90037 90046 title 90047 90046 The name of the channel. It’s how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website.90047 90046 GoUpstate.com News Headlines 90047 90044 90037 90046 link 90047 90046 The URL to the HTML website corresponding to the channel. 90047 90046 http://www.goupstate.com/ 90047 90044 90037 90046 description 90047 90046 Phrase or sentence describing the channel. 90047 90046 The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site. 90047 90044 90069 90002 Optional channel elements 90003 Here’s a list of optional channel elements. 90036 90037 90038 Element 90039 90038 Description 90039 90038 Example 90039 90044 90037 90046 language 90047 90046 The language the channel is written in.This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values ​​for this element, as provided by Netscape, is here. You may also use values ​​defined by the W3C. 90047 90046 en-us 90047 90044 90037 90046 copyright 90047 90046 Copyright notice for content in the channel. 90047 90046 Copyright 2002 Spartanburg Herald-Journal 90047 90044 90037 90046 managingEditor 90047 90046 Email address for person responsible for editorial content.90047 90046 geo@herald.com (George Matesky) 90047 90044 90037 90046 webMaster 90047 90046 Email address for person responsible for technical issues relating to channel. 90047 90046 betty@herald.com (Betty Guernsey) 90047 90044 90037 90046 pubDate 90047 90046 The publication date for the content in the channel. For example, the New York Times publishes on a daily basis, the publication date flips once every 24 hours. That’s when the pubDate of the channel changes. All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred).90047 90046 Sat, 07 Sep 2002 0:00:01 GMT 90047 90044 90037 90046 lastBuildDate 90047 90046 The last time the content of the channel changed. 90047 90046 Sat, 07 Sep 2002 9:42:31 GMT 90047 90044 90037 90046 category 90047 90046 Specify one or more categories that the channel belongs to. Follows the same rules as the <item> -level category element. More info. 90047 90046 <category> Newspapers </ category> 90047 90044 90037 90046 generator 90047 90046 A string indicating the program used to generate the channel.90047 90046 MightyInHouse Content System v2.3 90047 90044 90037 90046 docs 90047 90046 A URL that points to the documentation for the format used in the RSS file. It’s probably a pointer to this page. It’s for people who might stumble across an RSS file on a Web server 25 years from now and wonder what it is. 90047 90046 http://backend.userland.com/rss 90047 90044 90037 90046 cloud 90047 90046 Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds.More info here. 90047 90046 <cloud domain = "rpc.sys.com" port = "80" path = "/ RPC2" registerProcedure = "pingMe" protocol = "soap" /> 90047 90044 90037 90046 ttl 90047 90046 ttl stands for time to live. It’s a number of minutes that indicates how long a channel can be cached before refreshing from the source. More info here. 90047 90046 <ttl> 60 </ ttl> 90047 90044 90037 90046 image 90047 90046 Specifies a GIF, JPEG or PNG image that can be displayed with the channel. More info here.90047 90174 90044 90037 90046 textInput 90047 90046 Specifies a text input box that can be displayed with the channel. More info here. 90047 90174 90044 90037 90046 skipHours 90047 90046 A hint for aggregators telling them which hours they can skip. More info here. 90047 90174 90044 90037 90046 skipDays 90047 90046 A hint for aggregators telling them which days they can skip. More info here. 90047 90174 90044 90069 90198 <image> sub-element of <channel> 90199 is an optional sub-element of, which contains three required and three optional sub-elements.90006 <url> is the URL of a GIF, JPEG or PNG image that represents the channel. 90015 90006<title> describes the image, it’s used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML. 90015 90006<link> is the URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image<title> and<link> should have the same value as the channel’s<title> and<link>. 90015 90006 Optional elements include <width> and <height>, numbers, indicating the width and height of the image in pixels.<Description> contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering. 90015 90006 Maximum value for width is 144, default value is 88. 90015 90006 Maximum value for height is 400, default value is 31. 90015 90198 <cloud> sub-element of <channel> 90199 is an optional sub-element of. 90006 It specifies a web service that supports the rssCloud interface which can be implemented in HTTP-POST, XML-RPC or SOAP 1.1. 90015 90006 Its purpose is to allow processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds.90015 90006 90219 <cloud domain = "radio.xmlstoragesystem.com" port = "80" path = "/ RPC2" registerProcedure = "xmlStorageSystem.rssPleaseNotify" protocol = "xml-rpc" /> 90220 90015 90006 In this example, to request notification on the channel it appears in, you would send an XML-RPC message to radio.xmlstoragesystem.com on port 80, with a path of / RPC2. The procedure to call is xmlStorageSystem.rssPleaseNotify. 90015 90006 A full explanation of this element and the rssCloud interface is here. 90015 90198 <ttl> sub-element of <channel> 90199 is an optional sub-element of.90006 ttl stands for time to live. It’s a number of minutes that indicates how long a channel can be cached before refreshing from the source. This makes it possible for RSS sources to be managed by a file-sharing network such as Gnutella. 90015 90006 Example: <ttl> 60 </ ttl> 90015 90198 <textInput> sub-element of <channel> 90199 A channel may optionally contain a sub-element, which contains four required sub-elements. 90006<title> — The label of the Submit button in the text input area.90015 90006 <description> — Explains the text input area. 90015 90006 <name> — The name of the text object in the text input area. 90015 90006<link> — The URL of the CGI script that processes text input requests. 90015 90006 The purpose of the <textInput> element is something of a mystery. You can use it to specify a search engine box. Or to allow a reader to provide feedback. Most aggregators ignore it. 90015 90244 90002 Elements of <item> 90003 A channel may contain any number of s.An item may represent a «story» — much like a story in a newspaper or magazine; if so its description is a synopsis of the story, and the link points to the full story. An item may also be complete in itself, if so, the description contains the text (entity-encoded HTML is allowed), and the link and title may be omitted. All elements of an item are optional, however at least one of title or description must be present. 90036 90037 90038 Element 90039 90038 Description 90039 90038 Example 90039 90044 90037 90046 title 90047 90046 The title of the item.90047 90046 Venice Film Festival Tries to Quit Sinking 90047 90044 90037 90046 link 90047 90046 The URL of the item. 90047 90046 http://www.nytimes.com/2002/09/07/movies/07FEST.html 90047 90044 90037 90046 description 90047 90046 The item synopsis. 90047 90046 Some of the most heated chatter at the Venice Film Festival this week was about the way that the arrival of the stars at the Palazzo del Cinema was being staged. 90047 90044 90037 90046 author 90047 90046 Email address of the author of the item.More. 90047 90046 oprah@oxygen.net 90047 90044 90037 90046 category 90047 90046 Includes the item in one or more categories. More. 90047 90046 Simpsons Characters 90047 90044 90037 90046 comments 90047 90046 URL of a page for comments relating to the item. More. 90047 90046 http://www.myblog.org/cgi-local/mt/mt-comments.cgi?entry_id=290 90047 90044 90037 90046 enclosure 90047 90046 Describes a media object that is attached to the item. More. 90047 90046 <enclosure url = "http: // live.curry.com/mp3/celebritySCms.mp3 "length =" 1069871 "type =" audio / mpeg "/> 90047 90044 90037 90046 guid 90047 90046 A string that uniquely identifies the item. More. 90047 90046 <guid isPermaLink = "true"> http://inessential.com/2002/09/01.php#a2 </ guid> 90047 90044 90037 90046 pubDate 90047 90046 Indicates when the item was published. More. 90047 90046 Sun, 19 May 2002 15:21:36 GMT 90047 90044 90037 90046 source 90047 90046 The RSS channel that the item came from.More. 90047 90046 <source class="lazy lazy-hidden" url = "http://www.quotationspage.com/data/qotd.rss"> Quotes of the Day </ source> 90047 90044 90069 90198 <source> sub-element of <item> 90199 is an optional sub-element of. 90006 Its value is the name of the RSS channel that the item came from, derived from its<title>. It has one required attribute, url, which links to the XMLization of the source. 90015 90006 90219 <source class="lazy lazy-hidden" url = "http://static.userland.com/tomalak/links2.xml"> Tomalak’s Realm </ source> 90220 90015 90006 The purpose of this element is to propogate credit for links, to publicize the sources of news items.It’s used in the post command in the Radio UserLand aggregator. It should be generated automatically when forwarding an item from an aggregator to a weblog authoring tool. 90015 90198 <enclosure> sub-element of <item> 90199 is an optional sub-element of. 90006 It has three required attributes. url says where the enclosure is located, length says how big it is in bytes, and type says what its type is, a standard MIME type. 90015 90006 The url must be an http url. 90015 90006 90219 <enclosure url = "http: // www.scripting.com/mp3s/weatherReportSuite.mp3 "length =" 12216320 "type =" audio / mpeg "/> 90220 90015 90006 A use-case narrative for this element is here 90015 90198 <category> sub-element of <item> 90199 is an optional sub-element of. 90006 It has one optional attribute, domain, a string that identifies a categorization taxonomy. 90015 90006 The value of the element is a forward-slash-separated string that identifies a hierarchic location in the indicated taxonomy. Processors may establish conventions for the interpretation of categories.Two examples are provided below: 90015 90006 90219 <category> Grateful Dead </ category> 90220 90015 90006 90219 <category domain = "http://www.fool.com/cusips"> MSFT </ category> 90220 90015 90006 You may include as many category elements as you need to, for different domains, and to have an item cross-referenced in different parts of the same domain. 90015 90198 <pubDate> sub-element of <item> 90199 is an optional sub-element of. 90006 Its value is a date, indicating when the item was published.If it’s a date in the future, aggregators may choose to not display the item until that date. 90015 90006 90219 <pubDate> Sun, 19 May 2002 15:21:36 GMT </ pubDate> 90220 90015 90198 <guid> sub-element of <item> 90199 is an optional sub-element of. 90006 guid stands for globally unique identifier. It’s a string that uniquely identifies the item. When present, an aggregator may choose to use this string to determine if an item is new. 90015 90006 90219 <guid> http: // some.server.com/weblogItem3207 </ guid> 90220 90015 90006 There are no rules for the syntax of a guid. Aggregators must view them as a string. It’s up to the source of the feed to establish the uniqueness of the string. 90015 90006 If the guid element has an attribute named «isPermaLink» with a value of true, the reader may assume that it is a permalink to the item, that is, a url that can be opened in a Web browser, that points to the full item described by the <item> element. An example: 90015 90006 90219 <guid isPermaLink = "true"> http: // inessential.com / 2002/09 / 01.php # a2 </ guid> 90220 90015 90006 isPermaLink is optional, its default value is true. If its value is false, the guid may not be assumed to be a url, or a url to anything in particular. 90015 90198 <comments> sub-element of <item> 90199 is an optional sub-element of. 90006 If present, it is the url of the comments page for the item. 90015 90006 90219 <comments> http://rateyourmusic.com/yaccs/commentsn/blogId=705245&itemId=271 </ comments> 90220 90015 90198 <author> sub-element of <item> 90199 is an optional sub-element of.90006 It’s the email address of the author of the item. For newspapers and magazines syndicating via RSS, the author is the person who wrote the article that the <item> describes. For collaborative weblogs, the author of the item might be different from the managing editor or webmaster. For a weblog authored by a single individual it would make sense to omit the <author> element. 90015 90006 90219 <author> lawyer@boyer.net (Lawyer Boyer) </ author> 90220 90015 90002 Comments 90003 RSS places restrictions on the first non-whitespace characters of the data in and elements.The data in these elements must begin with an IANA-registered URI scheme, such as http: //, https: //, news: //, mailto: and ftp: //. Prior to RSS 2.0, the specification only allowed http: // and ftp: //, however, in practice other URI schemes were in use by content developers and supported by aggregators. Aggregators may have limits on the URI schemes they support. Content developers should not assume that all aggregators support all schemes. 90006 In RSS 0.91, various elements are restricted to 500 or 100 characters.There can be no more than 15 <items> in a 0.91 <channel>. There are no string-length or XML-level limits in RSS 0.92 and greater. Processors may impose their own limits, and generators may have preferences that say no more than a certain number of <item> s can appear in a channel, or that strings are limited in length. 90015 90006 In RSS 2.0, a provision is made for linking a channel to its identifier in a cataloging system, using the channel-level category feature, described above.For example, to link a channel to its Syndic8 identifier, include a category element as a sub-element of <channel>, with domain «Syndic8», and value the identifier for your channel in the Syndic8 database. The appropriate category element for Scripting News would be <category domain = "Syndic8"> 1765 </ category>. 90015 90006 A frequently asked question about <guid> s is how do they compare to<link> s. Are not they the same thing? Yes, in some content systems, and no in others.In some systems,<link> is a permalink to a weblog item. However, in other systems, each <item> is a synopsis of a longer article,<link> points to the article, and <guid> is the permalink to the weblog entry. In all cases, it’s recommended that you provide the guid, and if possible make it a permalink. This enables aggregators to not repeat items, even if there have been editing changes. 90015 90006 If you have questions about the RSS 2.0 format, please post them on the RSS2-Support mail list, hosted by Sjoerd Visscher.This is not a debating list, but serves as a support resource for users, authors and developers who are creating and using content in RSS 2.0 format. 90015 90002 Extending RSS 90003 RSS originated in 1999 року, and has strived to be a simple, easy to understand format, with relatively modest goals. After it became a popular format, developers wanted to extend it using modules defined in namespaces, as specified by the W3C. 90006 RSS 2.0 adds that capability, following a simple rule. A RSS feed may contain elements not described on this page, only if those elements are defined in a namespace.90015 90006 The elements defined in this document are not themselves members of a namespace, so that RSS 2.0 can remain compatible with previous versions in the following sense — a version 0.91 or 0.92 file is also a valid 2.0 file. If the elements of RSS 2.0 were in a namespace, this constraint would break, a version 0.9x file 90007 would not 90014 be a valid 2.0 file. 90015 90006 Here’s an example of a file that makes use of elements in namespaces, authored by Mark Pilgrim. 90015 90002 Roadmap 90003 RSS is by no means a perfect format, but it is very popular and widely supported.Having a settled spec is something RSS has needed for a long time. The purpose of this work is to help it become a unchanging thing, to foster growth in the market that is developing around it, and to clear the path for innovation in new syndication formats. Therefore, the RSS spec is, for all practical purposes, frozen at version 2.0.1. We anticipate possible 2.0.2 or 2.0.3 versions, etc. only for the purpose of clarifying the specification, not for adding new features to the format. Subsequent work should happen in modules, using namespaces, and in completely new syndication formats, with new names.90002 Copyright and disclaimer 90003 © Copyright 1997-2002 UserLand Software. All Rights Reserved. 90006 This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and these paragraphs are included on all such copies and derivative works. 90015 90006 This document may not be modified in any way, such as by removing the copyright notice or references to UserLand or other organizations.Further, while these copyright restrictions apply to the written RSS specification, no claim of ownership is made by UserLand to the format it describes. Any party may, for commercial or non-commercial purposes, implement this format without royalty or license fee to UserLand. The limited permissions granted herein are perpetual and will not be revoked by UserLand or its successors or assigns. 90015 90006 This document and the information contained herein is provided on an «AS IS» basis and USERLAND DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.90015.90000 ultraq / rss-xml-generator: Generate an XML document for an RSS feed 90001 Skip to content Sign up 90002 90003 Why GitHub? Features → 90002 90003 Code review 90006 90003 Project management 90006 90003 Integrations 90006 90003 Actions 90006 90003 Packages 90006 90003 Security 90006 90003 Team management 90006 90003 Hosting 90006 90021 90002 90003 Customer stories → 90006 90003 Security → 90006 90021 90006 90003 Team 90006 90003 Enterprise 90006 90003 Explore 90002 90003 Explore GitHub → 90006 90021 90038 Learn & contribute 90039 90002 90003 Topics 90006 90003 Collections 90006 90003 Trending 90006 90003 Learning Lab 90006 90003 Open source guides 90006 90021 90038 Connect with others 90039 90002 90003 Events 90006 90003 Community forum 90006 90003 GitHub Education 90006 90021 90006 90021.<div class='yarpp-related yarpp-related-none'><p>No related posts.</p></div></div></div><div class="single-meta"><footer class="entry-footer"> #<a href="https://gnomesmonetized.ru/category/raznoe-2" rel="category tag">Разное</a></footer></div></article><nav class="navigation post-navigation" aria-label="Записи"><h2 class="screen-reader-text">Навигация по записям</h2><div class="nav-links"><div class="nav-previous"><a href="https://gnomesmonetized.ru/raznoe-2/perevod-satoshej-v-rubli-kalkulyator-bitkoin-v-rubli-perevod-konverter-bitkoina-v-rubli-bitcoin-v-rub-onlajn.html" rel="prev"><span class="screen-reader-text">Предыдущая запись:</span> <span class="post-title">Перевод сатошей в рубли: Калькулятор Биткоин в рубли, перевод, конвертер Биткоина в рубли (Bitcoin в RUB) онлайн</span></a></div><div class="nav-next"><a href="https://gnomesmonetized.ru/raznoe-2/ya-nichego-ne-dobilas-v-zhizni-mechtal-o-velikom-a-zhivu-v-nichtozhnoj-realnosti-mne-29-let-ya-nichego-absolyutno-nichego-v-zhizni-ne-dobilsya.html" rel="next"><span class="screen-reader-text">Следующая запись:</span> <span class="post-title">Я ничего не добилась в жизни – Мечтал о великом, а живу в ничтожной реальности. Мне 29 лет, я ничего, абсолютно ничего в жизни не добился.</span></a></div></div></nav><div id="comments" class="comments-area"><div class="comments-wrapper"><div id="respond" class="comment-respond"><h3 id="reply-title" class="comment-reply-title">Добавить комментарий <small><a rel="nofollow" id="cancel-comment-reply-link" href="/raznoe-2/rss-xml-zagruzka-rss-kanala-texnologii-yandeksa.html#respond" style="display:none;">Отменить ответ</a></small></h3><form action="https://gnomesmonetized.ru/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate><p class="comment-notes"><span id="email-notes">Ваш адрес email не будет опубликован.</span> <span class="required-field-message">Обязательные поля помечены <span class="required">*</span></span></p><p class="comment-form-comment"><label for="comment">Комментарий <span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required></textarea></p><p class="comment-form-author"><label for="author">Имя <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" autocomplete="name" required /></p><p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" maxlength="100" aria-describedby="email-notes" autocomplete="email" required /></p><p class="comment-form-url"><label for="url">Сайт</label> <input id="url" name="url" type="url" value="" size="30" maxlength="200" autocomplete="url" /></p><p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Отправить комментарий" /> <input type='hidden' name='comment_post_ID' value='5603' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /></p></form></div></div></div></main></div><aside id="secondary" class="widget-area" role="complementary"><div class="theiaStickySidebar"><div id="search-2" class="widget widget_search"><form role="search" method="get" class="search-form" action="https://gnomesmonetized.ru/"> <label> <span class="screen-reader-text">Найти:</span> <input type="search" class="search-field" placeholder="Поиск…" value="" name="s" /> </label> <input type="submit" class="search-submit" value="Поиск" /></form></div><div id="nav_menu-2" class="widget widget_nav_menu"><h5 class="widget-title center-widget-title">Рубрики</h5><div class="menu-1-container"><ul id="menu-1" class="menu"><li id="menu-item-5380" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5380"><a href="https://gnomesmonetized.ru/category/bez-vlozhenij">Без вложений</a></li><li id="menu-item-5381" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5381"><a href="https://gnomesmonetized.ru/category/raznoe">Бизнес развитие</a></li><li id="menu-item-5382" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5382"><a href="https://gnomesmonetized.ru/category/bystro">Быстрый заработок</a></li><li id="menu-item-5383" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5383"><a href="https://gnomesmonetized.ru/category/zarabot">Где заработать</a></li><li id="menu-item-5384" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5384"><a href="https://gnomesmonetized.ru/category/zarabot-3">Заработок</a></li><li id="menu-item-5385" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5385"><a href="https://gnomesmonetized.ru/category/shkolniku">Заработок школьнику</a></li><li id="menu-item-5386" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5386"><a href="https://gnomesmonetized.ru/category/na-sajtax">На сайтах</a></li><li id="menu-item-5387" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5387"><a href="https://gnomesmonetized.ru/category/proverennye">Проверенные схемы</a></li><li id="menu-item-5389" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5389"><a href="https://gnomesmonetized.ru/category/sposoby">Способы заработка</a></li><li id="menu-item-5390" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-5390"><a href="https://gnomesmonetized.ru/category/frilans">Фриланс</a></li><li id="menu-item-5388" class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-5388"><a href="https://gnomesmonetized.ru/category/raznoe-2">Разное</a></li></ul></div></div></div></aside></div><footer id="colophon" class="site-footer" role="contentinfo"><div class="copyright-area"><div class="wrapper"><div class="col-row"><div class="col col-full"><div class="site-info"><div class="footer_image"></div><h4 class="site-copyright"> 2019 © Все права защищены.</h4><div class="col col-full site-copyright"> <a href="/sitemap.xml" class="c_sitemap">Карта сайта</a></div></div></div></div></div></div></footer></div><div class="scroll-up alt-bgcolor"> <i class="ion-ios-arrow-up text-light"></i></div> <noscript><style>.lazyload{display:none}</style></noscript><script data-noptimize="1">window.lazySizesConfig=window.lazySizesConfig||{};window.lazySizesConfig.loadMode=1;</script><script async data-noptimize="1" src='https://gnomesmonetized.ru/wp-content/plugins/autoptimize/classes/external/js/lazysizes.min.js'></script> <script type="text/javascript" id="jumla-script-js-extra">var jumlaVal={"nonce":"e94aa109e6","ajaxurl":"https:\/\/gnomesmonetized.ru\/wp-admin\/admin-ajax.php"};</script> <script defer src="https://gnomesmonetized.ru/wp-content/cache/autoptimize/js/autoptimize_022974e78c1a9b801049eada48536de8.js"></script></body></html><script src="/cdn-cgi/scripts/7d0fa10a/cloudflare-static/rocket-loader.min.js" data-cf-settings="e7a2fba21da3394baef1e9ec-|49" defer></script><script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script>