Fate u vostru propiu RSS feed cù questa generale XML
Sindicazione Reale Simple ( RSS ) pruponi à i prufessiunisti è di i novicesi una manera di mercatu di i so siti. Mentre è faciule facilmente associate un sindicatu RSS cù l'agenze di notizie solu, a verità hè chì l'RSS hè un travagliu per qualsiasi situ web chì cambià o cambia in contu novu contenutu.
Aduprighjine chì aghjunghianu RSS usanu l'estructura di XML per furnisce e donne. A creazione d'un documentu XML per prumove a vostra blog o pagine per un alimentu RSS hè qualcosa chì qualchissia cù un capiscenu basu di l'XML pò fà.
Set Up the Elements
Qualchi elementi sò standard per una feed RSS:
Titulu
Descrizzione
Link
Per esempiu, sè vo vulete creà un alloghju RSS chì cuntene u cuntenutu Web Design in u vostru situ web, avete bisognu d'elementi cum'è u:
Artìculi XML da [Su situatu web] title> Exciting new offerings from the world of XML and [Your Website] description> http://yourwebsite.com/xml-articles.htm link>
Tag Item
RSS usa certi elementi specifichi à distingue. Una sola scusa hè l'etiqueta , chì in u presentu esempiu, hè aduprata da seguenti:
Artìculi XML da [U vostru situ web] title> Exciting new offerings from the world of XML and [Your Website] description> http://yourwebsite.com/xml- articles.htm link> item>
I elementi per ogni pagina ind'è u nidu in l'etiqueta . RSS permette di vede furnisce più di una pagina di cuntenutu in un tempu da furnisce un novu "articulu" set, cum'è stu situ:
Artìculi XML da [U vostru situ web] title> Exciting new offerings from the world of XML and [Your Website] description> http://youwebsite.com/xml- articles.htm link> item> Web Design / HTML da [U vostru situ web] title> Sempre dispunite nantu à tutte e ricitarii è ricerche in u web design con yourwebsite .com description> http://yourwebsite.com/ link> item>
Tag Channel
Un lettore RSS, o agagliatore di novità, deve furmagliu assai infurmazioni in un pericu tempu. Per fà a so cumpagnia, separanu e fugliali in canali. Cum'è i canali nantu à TV, sta tag divice ogni nutizie.
Pudete implementà i canali cù a tag apertura è l'taglia di closing. Aduprà per cuntene l'tag, cum'è seguitu:
Artìculi XML da [U vostru situ web] title> Exciting new offerings from the world of XML and [Your Website] description> http://youwebsite.com /xml-articles.htm link> item> Web Design / HTML da [U vostru situ web] title> Mantene infurmatu nantu à tutti i tips and tricks in web disignu cù site.com description> http://yourwebsite.com/ link> item> channel>
Declaración XML è RSS Version
Tutti i documenti XML sò avè una stata di dichjarazione d'apertura:
xml version = "1.0"?>
Inoltre, l'XML creatu per una feed RSS debe d'utilizà cum'è l'elementu radicali è liste a versione (in l'esempiu di avanti, avemu usatu "2.0"). Avete avè aspettu per attraversu a ducumentazione da u vostru lettore RSS è utilizate a versione dumandata da u situ.
rss>
Quandu hà cumpretu u codice XML, guarda u documentu utilizendu l'estensione di l'estensione .XML è aghjà à l'aghjurnatu di a vostra scelta.
Eccu un esempiu di quale u nostru mudellu di ricerca di l'aghjurnamentu pò esse parechje:
xml version = "1.0"?> Artìculi XML da [U vostru situ web] title> Exciting new offerings from the world of XML and [U vostru situ web] description> http://youwebsite.com/xml-articles.htm link> item> Web Design / HTML da [U vostru situ web] title > Aghjunghjite infurmazione nantu à tutti i tips è tricks in u web design with yourwebsite.com description> http://yourwebsite.com/ link> item> channel> rss>