Um estudo em RSS Parte 3: Publicando seu feed

Nos últimos posts aprendemos o que é um Feed RSS, como surgiu, qual é sua cara e como ler suas informações. Agora chegou a hora de juntar tudo isso e descobrir como criar um RSS do seu site, publicando as suas notícias para que todos possam conferir.

O cenário de testes que vou propor se tratará de um site simples de notícias, por exemplo, um site corporativo que deseja divugar as novidades sobre sua empresa ou ramo. Vamos detalhar a base de dados e mostrar de forma geral como transformar os dados da tabela em um feed RSS atualizado.

1º Passo - Base de Dados

Ok, então voce tem uma base de dados com notícias, digamos que ela tem a estrutura abaixo:

Conclusão

Com isso chegamos ao final desta sequencia de artigos sobre RSS.

Finalmente neste arquivo juntamos todo conhecimento e geramos um feed a partir de um banco de dados com notícias. Espero que estes artigos tenham ajudado vocês, aos leigos um pouco sobre como usar e por que usar um RSS, e aos desenvolvedores como publicar seus conteúdos neste formato. Por favor sintam-se a vontade para deixar perguntas e sugestões nos comentários, posso sempre voltar ao assunto com novos tutoriais e artigos se for necessário. Obrigado pela paciência de todos que seguiram até aqui :D

comments powered by Disqus

Related Posts

Day to Day of a Principal Engineer

Day to Day of a Principal Engineer

  • November 18, 2026

This past weekend I led a mentoring session at CodeCon Select with Damiana Costa. What sets CodeCon Select apart is its participatory formats, like mentoring, fishbowls, and AMAs, where the audience helps shape the talk. That makes for a much richer event, and I highly recommend it.

Read More
The Pitfalls of the Big Rewrite: Why Evolution Often Beats Revolution

The Pitfalls of the Big Rewrite: Why Evolution Often Beats Revolution

  • April 16, 2025

In many conversations about how products and systems evolve within companies, a recurring theme emerges: the pitfalls we encounter. One of the most significant is the pattern of the major rewrite, sometimes called “building off to the side.” Now, don’t get me wrong – a well-executed strangler pattern can lead to amazing transformations of codebases and products. However, embarking on a major rewrite can also be the first step towards building a company’s own tombstone.

Read More
Closing a chapter

Closing a chapter

  • September 1, 2024

This is it; the house is mostly empty as I sit in my temporary home office, the living room table. Our Dutch lives are mostly in boxes in a container, and the only things left to go are Bella, our retriever, and me.

Read More